From cfca339cd54653f4b83bb382029cf23418369fcb Mon Sep 17 00:00:00 2001 From: nicolargo Date: Tue, 21 Mar 2023 08:36:41 +0100 Subject: [PATCH] Clear-text logging of sensitive information - Related to https://github.com/nicolargo/glances/security/code-scanning/30 and https://github.com/nicolargo/glances/security/code-scanning/31 --- glances/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glances/client.py b/glances/client.py index d87fe658..3020ffb0 100644 --- a/glances/client.py +++ b/glances/client.py @@ -99,7 +99,7 @@ class GlancesClient(object): # Fallback to SNMP self.client_mode = 'snmp' logger.error("Connection to Glances server failed ({} {})".format(err.errno, err.strerror)) - fall_back_msg = 'No Glances server found on {}. Trying fallback to SNMP...'.format(self.uri) + fall_back_msg = 'No Glances server found. Trying fallback to SNMP...' if not self.return_to_browser: print(fall_back_msg) else: