log class name, ID only is hard to debug

This commit is contained in:
Jörn Friedrich Dreyer 2016-08-09 12:26:32 +02:00 committed by Morris Jobke
parent 289704f13d
commit 9b760aafa1
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with 2 additions and 2 deletions

View File

@ -117,9 +117,9 @@ try {
break; break;
} }
$logger->debug('Run job with ID ' . $job->getId(), ['app' => 'cron']); $logger->debug('Run ' . get_class($job) . ' job with ID ' . $job->getId(), ['app' => 'cron']);
$job->execute($jobList, $logger); $job->execute($jobList, $logger);
$logger->debug('Finished job with ID ' . $job->getId(), ['app' => 'cron']); $logger->debug('Finished ' . get_class($job) . ' job with ID ' . $job->getId(), ['app' => 'cron']);
$jobList->setLastJob($job); $jobList->setLastJob($job);
$executedJobs[$job->getId()] = true; $executedJobs[$job->getId()] = true;