From 54c82bd88813078fe28b9a12290df6e8312d25bf Mon Sep 17 00:00:00 2001 From: Florian Jetter Date: Thu, 20 Oct 2022 10:36:54 +0200 Subject: [PATCH] Errors when setting TCP timeouts log as error (#7161) --- distributed/comm/tcp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distributed/comm/tcp.py b/distributed/comm/tcp.py index 8ff4bfed069..d7e0c7e6729 100644 --- a/distributed/comm/tcp.py +++ b/distributed/comm/tcp.py @@ -111,8 +111,8 @@ def set_tcp_timeout(comm): logger.debug("Setting TCP user timeout: %d ms", timeout * 1000) TCP_USER_TIMEOUT = 18 # since Linux 2.6.37 sock.setsockopt(socket.SOL_TCP, TCP_USER_TIMEOUT, timeout * 1000) - except OSError as e: - logger.warning("Could not set timeout on TCP stream: %s", e) + except OSError: + logger.exception("Could not set timeout on TCP stream.") def get_stream_address(comm):