Clear-text logging of sensitive information - Related to https://github.com/nicolargo/glances/security/code-scanning/33

This commit is contained in:
nicolargo 2023-03-21 08:33:35 +01:00
parent f02b366842
commit 65a4aa5661

View File

@ -93,7 +93,7 @@ class GlancesClientBrowser(object):
try:
s = ServerProxy(uri, transport=t)
except Exception as e:
logger.warning("Client browser couldn't create socket {}".format(e))
logger.warning("Client browser couldn't create socket ({})".format(e))
else:
# Mandatory stats
try:
@ -105,7 +105,7 @@ class GlancesClientBrowser(object):
# OS (Human Readable name)
server['hr_name'] = ujson.loads(s.getSystem())['hr_name']
except (socket.error, Fault, KeyError) as e:
logger.debug("Error while grabbing stats form {}: {}".format(uri, e))
logger.debug("Error while grabbing stats form server ({})".format(e))
server['status'] = 'OFFLINE'
except ProtocolError as e:
if e.errcode == 401: