r84316 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84315‎ | r84316 | r84317 >
Date:12:06, 19 March 2011
Author:tstarling
Status:ok
Tags:
Comment:
Log pool counter errors
Modified paths:
  • /trunk/phase3/includes/PoolCounter.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/PoolCounter.php
@@ -134,6 +134,13 @@
135135 function error( $status ) {
136136 return false;
137137 }
 138+
 139+ /**
 140+ * Log an error
 141+ */
 142+ function logError( $status ) {
 143+ wfDebugLog( 'poolcounter', $status->getWikiText() );
 144+ }
138145
139146 /**
140147 * Get the result of the work (whatever it is), or false.
@@ -180,6 +187,7 @@
181188 /* continue to the error */
182189 }
183190 }
 191+ $this->logError( $status );
184192 return $this->error( $status );
185193 }
186194

Follow-up revisions

RevisionCommit summaryAuthorDate
r84318MFT r84316: pool counter loggingtstarling12:09, 19 March 2011

Status & tagging log