JobRunner: use modified logproxy
This commit is contained in:
parent
cec4b7b57b
commit
4ba2c21ce9
|
@ -194,8 +194,8 @@ class JobRunner implements DbBasedComponent
|
|||
});
|
||||
if ($this->logProxy) {
|
||||
$logger = clone($this->logProxy);
|
||||
$logger->setPrefix("[$jobName]: ");
|
||||
$cli->rpc()->setHandler($this->logProxy, 'logger');
|
||||
$logger->setPrefix("Job ($jobName): ");
|
||||
$cli->rpc()->setHandler($logger, 'logger');
|
||||
}
|
||||
unset($this->scheduledIds[$id]);
|
||||
$this->runningIds[$id] = $cli->run($this->loop)->then(function () use ($id, $jobName) {
|
||||
|
|
Loading…
Reference in New Issue