Fix wfLogDBError channel redirect logic
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 30 Sep 2016 23:37:00 +0000 (16:37 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 30 Sep 2016 23:37:00 +0000 (16:37 -0700)
Change-Id: I1249f9a097625c2fab6601059177594e5f3a21fc

includes/debug/logger/LegacyLogger.php

index 3318ceb..0ca20bb 100644 (file)
@@ -103,7 +103,7 @@ class LegacyLogger extends AbstractLogger {
 
                if ( isset( self::$dbChannels[$this->channel] )
                        && isset( self::$levelMapping[$level] )
-                       && self::$levelMapping[$level] >= LogLevel::ERROR
+                       && self::$levelMapping[$level] >= self::$levelMapping[LogLevel::ERROR]
                ) {
                        // Format and write DB errors to the legacy locations
                        $effectiveChannel = 'wfLogDBError';