summaryrefslogtreecommitdiffstats
path: root/lib/private/BackgroundJob
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2020-01-31 16:04:04 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2020-01-31 16:04:04 +0100
commit018020108bef98b393bc0a4da11ca049ddc06234 (patch)
tree7f84d632b237aa9889c68db71977a49767f253a6 /lib/private/BackgroundJob
parent4765f5b3db6e8e3d2acae19a0c00f616729c1155 (diff)
downloadnextcloud-server-018020108bef98b393bc0a4da11ca049ddc06234.tar.gz
nextcloud-server-018020108bef98b393bc0a4da11ca049ddc06234.zip
Make sure to catch php errors during job execution
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private/BackgroundJob')
-rw-r--r--lib/private/BackgroundJob/Job.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/BackgroundJob/Job.php b/lib/private/BackgroundJob/Job.php
index 8f11ebb4deb..26c69a2486c 100644
--- a/lib/private/BackgroundJob/Job.php
+++ b/lib/private/BackgroundJob/Job.php
@@ -63,7 +63,7 @@ abstract class Job implements IJob {
$logger->debug('Finished ' . get_class($this) . ' job with ID ' . $this->getId() . ' in ' . $timeTaken . ' seconds', ['app' => 'cron']);
$jobList->setExecutionTime($this, $timeTaken);
- } catch (\Exception $e) {
+ } catch (\Throwable $e) {
if ($logger) {
$logger->logException($e, [
'app' => 'core',