From ab2f4d4d1a1bad8c1459645f413350a590f182fc Mon Sep 17 00:00:00 2001 From: David Huss <dh@atoav.com> Date: Mon, 15 Mar 2021 17:50:16 +0100 Subject: [PATCH] Return to default color after server has been reached again --- stechuhr_client/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stechuhr_client/client.py b/stechuhr_client/client.py index fd269d3..a37eb90 100644 --- a/stechuhr_client/client.py +++ b/stechuhr_client/client.py @@ -206,10 +206,10 @@ def process_request(output_queue, config=None, logger=None): reached == True else: if logger is not None: - logger.warn("Didn't reach server at {} for {} attempts: Server responded with {}".format(url, attempts, r.status)) + logger.warning("Didn't reach server at {} for {} attempts: Server responded with {}".format(url, attempts, r.status)) except Exception as e: if logger is not None: - logger.warn("Didn't reach server at {} for {} attempts: ".format(url, attempts, e)) + logger.warning("Didn't reach server at {} for {} attempts: ".format(url, attempts, e)) attempts += 1 time.sleep(6) logger.warn("Reached server again after {} attempts ".format(attempts)) -- GitLab