]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: log a warning when we can't build a background job backport/48736/stable30 49207/head
authorRobin Appelman <robin@icewind.nl>
Wed, 16 Oct 2024 13:29:25 +0000 (15:29 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 11 Nov 2024 16:33:16 +0000 (16:33 +0000)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/BackgroundJob/JobList.php

index 55051636a7eba5a11d97181884eff9c13a0f84dc..2cb44a26d5e57697517ff876d87052b7a3b682c7 100644 (file)
@@ -291,6 +291,7 @@ class JobList implements IJobList {
                                        $class = $row['class'];
                                        $job = new $class();
                                } else {
+                                       $this->logger->warning('failed to create instance of background job: ' . $row['class'], ['app' => 'cron', 'exception' => $e]);
                                        // Remove job from disabled app or old version of an app
                                        $this->removeById($row['id']);
                                        return null;