From 3342af373caa4545c237b3870ca383d2fdf0e0c9 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 19 Mar 2011 12:06:04 +0000 Subject: [PATCH] Log pool counter errors --- includes/PoolCounter.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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 ); } -- 2.20.1