From 65a29ed4c97a0250135ab12d2825c260806f617c Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sun, 30 Mar 2025 08:58:56 +0200 Subject: [PATCH] Log exception for unhandled errors in background tasks --- cps/services/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/services/worker.py b/cps/services/worker.py index dce3da79..2a0809ca 100644 --- a/cps/services/worker.py +++ b/cps/services/worker.py @@ -199,7 +199,7 @@ class CalibreTask: self.run(*args) except Exception as ex: self._handleError(str(ex)) - log.error_or_exception(ex) + log.exception(ex) self.end_time = datetime.now()