dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
6947feb
)
Merge "Fix undefined property in PoolCounterWork"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Thu, 6 Mar 2014 23:49:04 +0000
(23:49 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Thu, 6 Mar 2014 23:49:04 +0000
(23:49 +0000)
includes/PoolCounter.php
patch
|
blob
|
history
diff --git
a/includes/PoolCounter.php
b/includes/PoolCounter.php
index
3d4c464
..
7acabfd
100644
(file)
--- a/
includes/PoolCounter.php
+++ b/
includes/PoolCounter.php
@@
-91,6
+91,13
@@
abstract class PoolCounter {
return new $class( $conf, $type, $key );
}
+ /**
+ * @return string
+ */
+ public function getKey() {
+ return $this->key;
+ }
+
/**
* I want to do this task and I need to do it myself.
*
@@
-186,7
+193,9
@@
abstract class PoolCounterWork {
* @return void
*/
function logError( $status ) {
- wfDebugLog( 'poolcounter', "Pool key '{$this->key}': "
+ $key = $this->poolCounter->getKey();
+
+ wfDebugLog( 'poolcounter', "Pool key '$key': "
. $status->getMessage()->inLanguage( 'en' )->useDatabase( false )->text() );
}