Update socketify.py

pull/176/head
leunga1000 2024-05-13 13:58:47 +01:00 zatwierdzone przez GitHub
rodzic 86ffaa326e
commit 9f059718bf
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 23 dodań i 23 usunięć

Wyświetl plik

@ -68,7 +68,7 @@ def uws_websocket_factory_drain_handler(ws, user_data):
if dispose: if dispose:
app._ws_factory.dispose(instances) app._ws_factory.dispose(instances)
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -90,7 +90,7 @@ def uws_websocket_drain_handler_with_extension(ws, user_data):
handler(ws) handler(ws)
except Exception as err: except Exception as err:
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -108,7 +108,7 @@ def uws_websocket_drain_handler(ws, user_data):
handler(ws) handler(ws)
except Exception as err: except Exception as err:
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -190,7 +190,7 @@ def uws_websocket_factory_subscription_handler(
if dispose: if dispose:
app._ws_factory.dispose(instances) app._ws_factory.dispose(instances)
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -233,7 +233,7 @@ def uws_websocket_subscription_handler(
) )
except Exception as err: except Exception as err:
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -280,7 +280,7 @@ def uws_websocket_subscription_handler_with_extension(
) )
except Exception as err: except Exception as err:
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -313,7 +313,7 @@ def uws_websocket_factory_open_handler(ws, user_data):
if dispose: if dispose:
app._ws_factory.dispose(instances) app._ws_factory.dispose(instances)
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -336,7 +336,7 @@ def uws_websocket_open_handler_with_extension(ws, user_data):
handler(ws) handler(ws)
except Exception as err: except Exception as err:
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -355,7 +355,7 @@ def uws_websocket_open_handler(ws, user_data):
handler(ws) handler(ws)
except Exception as err: except Exception as err:
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -397,7 +397,7 @@ def uws_websocket_factory_message_handler(ws, message, length, opcode, user_data
if dispose: if dispose:
app._ws_factory.dispose(instances) app._ws_factory.dispose(instances)
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -431,7 +431,7 @@ def uws_websocket_message_handler_with_extension(
except Exception as err: except Exception as err:
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -459,7 +459,7 @@ def uws_websocket_message_handler(ws, message, length, opcode, user_data):
except Exception as err: except Exception as err:
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -498,7 +498,7 @@ def uws_websocket_factory_pong_handler(ws, message, length, user_data):
if dispose: if dispose:
app._ws_factory.dispose(instances) app._ws_factory.dispose(instances)
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -525,7 +525,7 @@ def uws_websocket_pong_handler_with_extension(ws, message, length, user_data):
handler(ws, data) handler(ws, data)
except Exception as err: except Exception as err:
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -548,7 +548,7 @@ def uws_websocket_pong_handler(ws, message, length, user_data):
handler(ws, data) handler(ws, data)
except Exception as err: except Exception as err:
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -588,7 +588,7 @@ def uws_websocket_factory_ping_handler(ws, message, length, user_data):
if dispose: if dispose:
app._ws_factory.dispose(instances) app._ws_factory.dispose(instances)
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -617,7 +617,7 @@ def uws_websocket_ping_handler_with_extension(ws, message, length, user_data):
except Exception as err: except Exception as err:
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -642,7 +642,7 @@ def uws_websocket_ping_handler(ws, message, length, user_data):
except Exception as err: except Exception as err:
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -692,7 +692,7 @@ def uws_websocket_factory_close_handler(ws, code, message, length, user_data):
except Exception as err: except Exception as err:
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -738,7 +738,7 @@ def uws_websocket_close_handler_with_extension(ws, code, message, length, user_d
except Exception as err: except Exception as err:
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -780,7 +780,7 @@ def uws_websocket_close_handler(ws, code, message, length, user_data):
except Exception as err: except Exception as err:
logging.error( logging.error(
"Uncaught Exception: %s" % str(err) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
@ -3421,7 +3421,7 @@ class App:
if self.error_handler is None: if self.error_handler is None:
try: try:
logging.error( logging.error(
"Uncaught Exception: %s" % str(error) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
response.write_status(500).end("Internal Error") response.write_status(500).end("Internal Error")
finally: finally:
@ -3438,7 +3438,7 @@ class App:
try: try:
# Error handler got an error :D # Error handler got an error :D
logging.error( logging.error(
"Uncaught Exception: %s" % str(error) "Uncaught Exception: %s" % traceback.format_exc()
) # just log in console the error to call attention ) # just log in console the error to call attention
response.write_status(500).end("Internal Error") response.write_status(500).end("Internal Error")
finally: finally: