Fix wfLogDBError channel redirect logic

Change-Id: I1249f9a097625c2fab6601059177594e5f3a21fc
This commit is contained in:
Aaron Schulz 2016-09-30 16:37:00 -07:00
parent b8ac5c0004
commit 094105f017

View 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';