Merge pull request #3418 from nicolargo/alert-autofix-47

Potential fix for code scanning alert no. 47: Clear-text logging of sensitive information
This commit is contained in:
Nicolas Hennion
2026-01-31 09:48:04 +01:00
committed by GitHub

View File

@@ -68,7 +68,8 @@ class GlancesClient:
try:
self.client = xmlrpc.xmlrpc_client.ServerProxy(self.uri, transport=transport)
except Exception as e:
self.log_and_exit(f"Client couldn't create socket {self.uri}: {e}")
# Do not log self.uri here because it may contain credentials
self.log_and_exit(f"Client couldn't create socket to http://{args.client}:{args.port}: {e}")
@property
def quiet(self):