Selaa lähdekoodia

Lighter log on error

jherve 1 vuosi sitten
vanhempi
commit
4e15a8bd1b
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      src/media_observer/test.py

+ 1 - 2
src/media_observer/test.py

@@ -231,8 +231,7 @@ class QueueWorker(Worker):
                 self._log("WARNING", "cancelled")
                 return
             except Exception as e:
-                traceback.print_exception(e)
-                self._log("ERROR", f"failed with {e}")
+                self._log("DEBUG", f"failed with {e.__class__.__name__}")
 
     async def step(self):
         job: Job = await self.inbound_queue.get()