Add debug log statement for IJobList steps in cron.php
* makes debugging easier
This commit is contained in:
parent
bf941032a3
commit
95a3b4fd24
1 changed files with 2 additions and 0 deletions
2
cron.php
2
cron.php
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue