Skip to content

Commit

Permalink
Correct clear-text logging of sensitive information (security alert #29)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Jan 30, 2023
1 parent 7d24620 commit e7b26b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glances/exports/glances_mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def init(self):
client = pymongo.MongoClient(server_uri)
client.admin.command('ping')
except Exception as e:
logger.critical("Cannot connect to MongoDB server %s (%s)" % (server_uri, e))
logger.critical("Cannot connect to MongoDB server %s:%s (%s)" % (self.host, self.port, e))
sys.exit(2)
else:
logger.info("Connected to the MongoDB server")
Expand Down

0 comments on commit e7b26b8

Please sign in to comment.