Change-Id: I033288d31dcef2120eb9239d1bc690d5cb0edda6
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.
*
* @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() );
}