1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-11-21 14:34:43 +01:00

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

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