Andreas Echavez (oceanplexian) wrote in changelog,
Andreas Echavez
oceanplexian
changelog

[livejournal] r23514: dbi errors obstructing UI, moving {'__WA...

Committer: andreas
dbi errors obstructing UI, moving {'__WARN__'} to verbose
U   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" .

Tags: andreas, livejournal, oceanplexian, pl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments