Don't display URL containing shared secret when there is an error

This commit is contained in:
Baptiste Jonglez 2020-06-15 22:47:51 +02:00
parent a45ae45408
commit 1d3eefa971
1 changed files with 2 additions and 1 deletions

3
lg.py
View File

@ -162,7 +162,8 @@ def bird_proxy(host, proto, service, query):
resultat = f.read()
status = True # retreive remote status
except IOError:
resultat = "Failed retreive url: %s" % url
resultat = "Failed to retrieve URL for host %s" % host
app.logger.warning("Failed to retrieve URL for host %s: %s", host, url)
status = False
return status, resultat