mirror of
https://github.com/sileht/bird-lg.git
synced 2024-11-21 22:44:43 +01:00
Don't display URL containing shared secret when there is an error
This commit is contained in:
parent
a45ae45408
commit
1d3eefa971
3
lg.py
3
lg.py
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue