Skip to content

Commit

Permalink
Merge pull request nextcloud#786 from nextcloud/fix-backgroundjob-logs
Browse files Browse the repository at this point in the history
log class name, ID only is hard to debug
  • Loading branch information
rullzer authored Aug 9, 2016
2 parents 4e2b1ef + a16c073 commit f2e4323
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@
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);
$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);
$executedJobs[$job->getId()] = true;
Expand Down

0 comments on commit f2e4323

Please sign in to comment.