aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-11-06 11:08:30 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-11-06 11:08:30 +0100
commit95a3b4fd24c0ce4c45a1cb6a2e3d9e699faa0ebd (patch)
treef9aebcb88ef6462a7967b4ff42a5578f5a8515c5 /cron.php
parentbf941032a39047cc948af5887e43f664d05e1e40 (diff)
downloadnextcloud-server-95a3b4fd24c0ce4c45a1cb6a2e3d9e699faa0ebd.tar.gz
nextcloud-server-95a3b4fd24c0ce4c45a1cb6a2e3d9e699faa0ebd.zip
Add debug log statement for IJobList steps in cron.php
* makes debugging easier
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/cron.php b/cron.php
index 3caa50a94a8..008a02b6d3e 100644
--- a/cron.php
+++ b/cron.php
@@ -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