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
1 changed files with 2 additions and 0 deletions

View File

@ -132,7 +132,9 @@ try {
$jobList = \OC::$server->getJobList();
$jobs = $jobList->getAll();
foreach ($jobs as $job) {
$logger->debug('Run job with ID ' . $job->getId(), ['app' => 'cron']);
$job->execute($jobList, $logger);
$logger->debug('Finished job with ID ' . $job->getId(), ['app' => 'cron']);
}
// unlock the file