Show the pool counter key and use English for the debug logging
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 7 Feb 2014 22:03:59 +0000 (14:03 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 7 Feb 2014 22:03:59 +0000 (14:03 -0800)
Change-Id: I69c3ece80dd59ad8dbd4fc4e1cf2d6491d135fb7

includes/PoolCounter.php

index 2dac938..b4f14c2 100644 (file)
@@ -186,7 +186,8 @@ abstract class PoolCounterWork {
         * @return void
         */
        function logError( $status ) {
-               wfDebugLog( 'poolcounter', $status->getWikiText() );
+               wfDebugLog( 'poolcounter', "Pool key '{$this->key}':"
+                       . $status->getMessage()->inLanguage( 'en' )->useDatabase( false )->text() );
        }
 
        /**