Skip to content

Commit

Permalink
Add debug log statement for IJobList steps in cron.php
Browse files Browse the repository at this point in the history
* makes debugging easier
  • Loading branch information
MorrisJobke committed Nov 6, 2015
1 parent bf94103 commit 95a3b4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@
$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
Expand Down

0 comments on commit 95a3b4f

Please sign in to comment.