JobRunner: use modified logproxy

This commit is contained in:
Thomas Gelf 2019-09-29 08:59:23 +02:00
parent cec4b7b57b
commit 4ba2c21ce9
1 changed files with 2 additions and 2 deletions

View File

@ -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) {