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 c038343 commit 1609bcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xpra/net/http/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,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 1609bcc

Please sign in to comment.