Committer: andreas
dbi errors obstructing UI, moving {'__WARN__'} to verboseU trunk/bin/dbcheck.pl
Modified: trunk/bin/dbcheck.pl =================================================================== --- trunk/bin/dbcheck.pl 2012-12-30 20:59:22 UTC (rev 23513) +++ trunk/bin/dbcheck.pl 2013-01-08 10:09:20 UTC (rev 23514) @@ -35,6 +35,10 @@ die "\$LJHOME not set.\n"; } +if ($opt_verbose != 1) { + $SIG{'__WARN__'} = sub {}; +} + if ($help) { die ("Usage: dbcheck.pl [opts] [[cmd] args...]\n" . " --all Check all hosts, even those with no weight assigned.\n" .