]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: log a warning when we can't build a background job backport/48736/stable29 49206/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:31:46 +0000 (16:31 +0000)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/BackgroundJob/JobList.php

index b442c2c3e933e3dbfbe648642442899a8b61b74b..6da46661c7de009e1e966323bb9114172a2f61bd 100644 (file)
@@ -307,6 +307,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;