Merge pull request #20350 from owncloud/add-log-statement-for-cron

Add debug log statement for IJobList steps in cron.php
This commit is contained in:
Thomas Müller 2015-11-06 14:47:26 +01:00
commit 5e7fdd7b7c
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