hotfix: log_message crashes on do_GET — use getattr fallback for _session_id
This commit is contained in:
Binary file not shown.
@@ -4419,7 +4419,8 @@ class Handler(http.server.BaseHTTPRequestHandler):
|
||||
|
||||
def log_message(self, fmt, *args):
|
||||
msg = fmt % args if args else fmt
|
||||
print(f"[{self._session_id}] {BACKEND} {msg}", file=sys.stderr)
|
||||
_sid = getattr(self, '_session_id', None) or 'proxy'
|
||||
print(f"[{_sid}] {BACKEND} {msg}", file=sys.stderr)
|
||||
|
||||
_SHUTDOWN_REQUESTED = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user