Skip to content

Commit

Permalink
silence http timeout errors
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 20, 2024
1 parent 4e64fb7 commit 892f8de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xpra/net/http/http_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ def __init__(self, sock, addr,

def log_error(self, fmt, *args) -> None: #pylint: disable=arguments-differ
#don't log 404s at error level:
if len(args)==2 and args[0]==404:
if len(args) == 1 and isinstance(args[0], TimeoutError):
log(fmt, *args)
elif len(args) == 2 and args[0] == 404:
log(fmt, *args)
else:
log.error(fmt, *args)
Expand Down

0 comments on commit 892f8de

Please sign in to comment.