Show the pool counter key and use English for the debug logging
[lhc/web/wiklou.git] / 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() );
        }
 
        /**