Fix code scanning alert #18: Clear-text logging of sensitive information

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Leandro Antônio Farias Machado 2024-09-21 13:18:59 -03:00 committed by GitHub
parent 004bb9a494
commit 2a1b4da0ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,7 +96,7 @@ func (b *Bridge) StartBridge(serverUrl, clientId string) {
log.Println("MQTT client id:", pahoClientConfig.ClientID)
log.Println("MQTT username:", b.Mqtt.Username)
log.Println("MQTT password:", b.Mqtt.Password)
log.Println("MQTT password: [REDACTED]")
cm, err := autopaho.NewConnection(b.Ctx, autopahoClientConfig)
if err != nil {