From 1609bcc7b989c9ffd957b9c0a2da570282a4c3a4 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 20 Sep 2024 17:43:33 +0700 Subject: [PATCH] silence http timeout errors --- xpra/net/http/handler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xpra/net/http/handler.py b/xpra/net/http/handler.py index cb14ae83b0..880b1a8312 100644 --- a/xpra/net/http/handler.py +++ b/xpra/net/http/handler.py @@ -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)