Explorar o código

report exception with globals.log

Rodja Trappe %!s(int64=2) %!d(string=hai) anos
pai
achega
8a20dcfdfb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()