Add debug log statement for IJobList steps in cron.php

* makes debugging easier
This commit is contained in:
Morris Jobke 2015-11-06 11:08:30 +01:00
parent bf941032a3
commit 95a3b4fd24

View file

@ -132,7 +132,9 @@ try {
$jobList = \OC::$server->getJobList(); $jobList = \OC::$server->getJobList();
$jobs = $jobList->getAll(); $jobs = $jobList->getAll();
foreach ($jobs as $job) { foreach ($jobs as $job) {
$logger->debug('Run 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']);
} }
// unlock the file // unlock the file