From 296837d4a9a4726719a8d7d957cda31135e0da9b Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 23 Sep 2017 18:44:06 +0200 Subject: [PATCH] log: identify exception source in log for daemon/get_server --- lib/daemon.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/daemon.py b/lib/daemon.py index 19eb364d4..96781c27a 100644 --- a/lib/daemon.py +++ b/lib/daemon.py @@ -87,8 +87,7 @@ def get_server(config): server.ping() return server except Exception as e: - print_error(e) - pass + print_error("[get_server]", e) if not create_time or create_time < time.time() - 1.0: return None # Sleep a bit and try again; it might have just been started