telefonicaid / iotagent-node-lib

Module to enable IoT Agent developers to build custom agents for their devices that can easily connect to NGSI Context Brokers
https://iotagent-node-lib.rtfd.io/
GNU Affero General Public License v3.0
60 stars 86 forks source link

Remove MongoDB connection options from log, to avoid credentials display #1387

Closed Emmanuel-Nau closed 1 year ago

Emmanuel-Nau commented 1 year ago

Currently, the full MongoDB connection options object is displayed at INFO level in logs. This options object contains the db credentials, so the log exposes those credentials. I think it's better to remove the options object from logs (the host and port are kept).

fgalan commented 1 year ago

Thanks for your contribution!