fix error display

This commit is contained in:
hjlarry 2026-01-13 17:19:52 +08:00
parent 79c19983e0
commit 14f7f4758a
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,7 @@ def socket_connect(sid, environ, auth):
request_environ = WerkzeugRequest(environ)
token = extract_access_token(request_environ)
except Exception:
logging.exception("Failed to extract token")
token = None
if not token:
@ -75,6 +76,7 @@ def socket_connect(sid, environ, auth):
return True
except Exception:
logging.exception("Socket authentication failed")
return False