Explorar el Código

report exception with globals.log

Rodja Trappe hace 2 años
padre
commit
8a20dcfdfb
Se han modificado 1 ficheros con 1 adiciones y 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()