From 1d3eefa971f468751c105b96ae203bae0b2a921b Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Mon, 15 Jun 2020 22:47:51 +0200 Subject: [PATCH] Don't display URL containing shared secret when there is an error --- lg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lg.py b/lg.py index b26a71b..7b0c8ab 100644 --- a/lg.py +++ b/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