Explorar el Código

logging coroutine error

wangweimin hace 5 años
padre
commit
4ea79391bd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pywebio/framework.py

+ 1 - 1
pywebio/framework.py

@@ -94,7 +94,7 @@ class WebIOSession:
 
     def on_coro_error(self):
         from .output import put_markdown  # todo
-
+        logger.exception('Error in coroutine executing')
         type, value, tb = sys.exc_info()
         tb_len = len(list(traceback.walk_tb(tb)))
         lines = traceback.format_exception(type, value, tb, limit=1 - tb_len)