From c8cbb76bb2c37b4f15c1b4332474b19fa4a6ecf5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 30 Jun 2020 14:07:51 +0200 Subject: [PATCH] Improve error message for stuck cronjobs --- .../install/files/lib/system/cronjob/CronjobScheduler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php b/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php index 4de8ebc674..180efe1329 100644 --- a/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php @@ -161,7 +161,7 @@ class CronjobScheduler extends SingletonFactory { 'execTime' => TIME_NOW ]); $logEditor = new CronjobLogEditor($log); - $this->logResult($logEditor, new \Exception('Cronjob stuck in state '.$cronjob->state.' for two periods, resetting.')); + $this->logResult($logEditor, new \Exception("Cronjob stuck in state '".$cronjob->state."' for two periods (nextExec '".$cronjob->nextExec."', afterNextExec '".$cronjob->afterNextExec."', now '".TIME_NOW."').")); break; default: throw new \LogicException('Unreachable'); -- 2.20.1