Index: trunk/phase3/includes/PoolCounter.php |
— | — | @@ -134,6 +134,13 @@ |
135 | 135 | function error( $status ) { |
136 | 136 | return false; |
137 | 137 | } |
| 138 | + |
| 139 | + /** |
| 140 | + * Log an error |
| 141 | + */ |
| 142 | + function logError( $status ) { |
| 143 | + wfDebugLog( 'poolcounter', $status->getWikiText() ); |
| 144 | + } |
138 | 145 | |
139 | 146 | /** |
140 | 147 | * Get the result of the work (whatever it is), or false. |
— | — | @@ -180,6 +187,7 @@ |
181 | 188 | /* continue to the error */ |
182 | 189 | } |
183 | 190 | } |
| 191 | + $this->logError( $status ); |
184 | 192 | return $this->error( $status ); |
185 | 193 | } |
186 | 194 | |