$this->clientId = md5( $client['ip'] . "\n" . $client['agent'] );
$this->key = $store->makeGlobalKey( __CLASS__, $this->clientId );
$this->waitForPosTime = $posTime;
- $this->logger = LoggerFactory::getInstance( 'DBReplication' );
+ $this->logger = new \Psr\Log\NullLogger();
}
public function setLogger( LoggerInterface $logger ) {
if ( $result == $loop::CONDITION_REACHED ) {
$msg = "expected and found pos time {$this->waitForPosTime} ({$waitedMs}ms)";
+ $this->logger->debug( $msg );
} else {
$msg = "expected but missed pos time {$this->waitForPosTime} ({$waitedMs}ms)";
+ $this->logger->info( $msg );
}
- wfDebugLog( 'replication', $msg );
} else {
$data = $this->store->get( $this->key );
}