Bläddra i källkod

report exception with globals.log

Rodja Trappe 2 år sedan
förälder
incheckning
8a20dcfdfb
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      nicegui/functions/timer.py

+ 1 - 1
nicegui/functions/timer.py

@@ -58,7 +58,7 @@ class Timer:
                 except asyncio.CancelledError:
                     break
                 except:
-                    traceback.print_exc()
+                    globals.log.exception('Exception in timer callback')
                     await asyncio.sleep(self.interval)
         self.cleanup()