Skip to content

Commit

Permalink
Display URL in log while waiting for Grafolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Anze committed Nov 18, 2020
1 parent 5b634b3 commit 1f622b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snmpbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)


Expand Down

0 comments on commit 1f622b7

Please sign in to comment.