From 1f622b7ba09c885e33e75ad960c093c4e6e4ff2c Mon Sep 17 00:00:00 2001 From: Anze Date: Wed, 18 Nov 2020 21:03:18 +0100 Subject: [PATCH] Display URL in log while waiting for Grafolean --- snmpbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snmpbot.py b/snmpbot.py index 5636164..b1632a8 100644 --- a/snmpbot.py +++ b/snmpbot.py @@ -428,8 +428,8 @@ def jobs(self): def wait_for_grafolean(backend_url): + url = '{}/status/info'.format(backend_url) while True: - url = '{}/status/info'.format(backend_url) log.info("Checking Grafolean status...") try: r = requests.get(url) @@ -440,7 +440,7 @@ def wait_for_grafolean(backend_url): return except: pass - log.info("Grafolean backend not available / initialized yet, waiting.") + log.info(f"Grafolean backend (url: {url}) not available / initialized yet, waiting.") time.sleep(10)