From: Tim Starling Date: Sat, 19 Mar 2011 12:06:04 +0000 (+0000) Subject: Log pool counter errors X-Git-Tag: 1.31.0-rc.0~31324 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=3342af373caa4545c237b3870ca383d2fdf0e0c9;p=lhc%2Fweb%2Fwiklou.git Log pool counter errors --- diff --git a/includes/PoolCounter.php b/includes/PoolCounter.php index 3851767fad..c24993e835 100644 --- a/includes/PoolCounter.php +++ b/includes/PoolCounter.php @@ -134,6 +134,13 @@ abstract class PoolCounterWork { function error( $status ) { return false; } + + /** + * Log an error + */ + function logError( $status ) { + wfDebugLog( 'poolcounter', $status->getWikiText() ); + } /** * Get the result of the work (whatever it is), or false. @@ -180,6 +187,7 @@ abstract class PoolCounterWork { /* continue to the error */ } } + $this->logError( $status ); return $this->error( $status ); }