resourceloader: Avoid using 'message' in log message key
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 10 Dec 2015 01:33:25 +0000 (01:33 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 10 Dec 2015 01:33:25 +0000 (01:33 +0000)
This overrides the message being sent. Use 'messageKey' instead,
which complements 'cacheKey' used elsewhere in the class.

Change-Id: I70b1115853d16e5f1357dc5f3d10e46f9c029fc6

includes/cache/MessageBlobStore.php

index e8c05a4..a2e46d3 100644 (file)
@@ -219,8 +219,8 @@ class MessageBlobStore implements LoggerAwareInterface {
                $message = wfMessage( $key )->inLanguage( $lang );
                $value = $message->plain();
                if ( !$message->exists() ) {
-                       $this->logger->warning( __METHOD__ . ' failed to find {message} ({lang})', array(
-                               'message' => $key,
+                       $this->logger->warning( 'Failed to find {messageKey} ({lang})', array(
+                               'messageKey' => $key,
                                'lang' => $lang,
                        ) );
                }