mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-26 02:31:36 +03:00
Clear-text logging of sensitive information - Related to https://github.com/nicolargo/glances/security/code-scanning/33
This commit is contained in:
parent
f02b366842
commit
65a4aa5661
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user