X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fdebug%2Flogger%2FLegacyLogger.php;h=9d0789c4dc1d64b56fbe5f4627d56e5eb2497d29;hp=7bd505d089f76d76dbd0e27ef07fd196ade0aa35;hb=2323b0ba8161892714c3aba9fc6a4212397e0283;hpb=963bff8cce84a627fd68f415b99ce6760e3748b8 diff --git a/includes/debug/logger/LegacyLogger.php b/includes/debug/logger/LegacyLogger.php index 7bd505d089..9d0789c4dc 100644 --- a/includes/debug/logger/LegacyLogger.php +++ b/includes/debug/logger/LegacyLogger.php @@ -29,7 +29,7 @@ use Psr\Log\LogLevel; use UDPTransport; /** - * PSR-3 logger that mimics the historic implementation of MediaWiki's + * PSR-3 logger that mimics the historic implementation of MediaWiki's former * wfErrorLog logging implementation. * * This logger is configured by the following global configuration variables: @@ -145,10 +145,6 @@ class LegacyLogger extends AbstractLogger { // specfied. $shouldEmit = (bool)$wgDBerrorLog; - } elseif ( $channel === 'wfErrorLog' ) { - // All messages on the wfErrorLog channel should be emitted. - $shouldEmit = true; - } elseif ( $channel === 'wfDebug' ) { // wfDebug messages are emitted if a catch all logging file has // been specified. Checked explicitly so that 'private' flagged @@ -192,10 +188,9 @@ class LegacyLogger extends AbstractLogger { /** * Format a message. * - * Messages to the 'wfDebug', 'wfLogDBError' and 'wfErrorLog' channels - * receive special fomatting to mimic the historic output of the functions - * of the same name. All other channel values are formatted based on the - * historic output of the `wfDebugLog()` global function. + * Messages to the 'wfDebug' and 'wfLogDBError' channels receive special formatting to mimic the + * historic output of the functions of the same name. All other channel values are formatted + * based on the historic output of the `wfDebugLog()` global function. * * @param string $channel * @param string $message @@ -211,9 +206,6 @@ class LegacyLogger extends AbstractLogger { } elseif ( $channel === 'wfLogDBError' ) { $text = self::formatAsWfLogDBError( $channel, $message, $context ); - } elseif ( $channel === 'wfErrorLog' ) { - $text = "{$message}\n"; - } elseif ( $channel === 'profileoutput' ) { // Legacy wfLogProfilingData formatitng $forward = '';