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:
parent
004bb9a494
commit
2a1b4da0ed
|
|
@ -96,7 +96,7 @@ func (b *Bridge) StartBridge(serverUrl, clientId string) {
|
||||||
|
|
||||||
log.Println("MQTT client id:", pahoClientConfig.ClientID)
|
log.Println("MQTT client id:", pahoClientConfig.ClientID)
|
||||||
log.Println("MQTT username:", b.Mqtt.Username)
|
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)
|
cm, err := autopaho.NewConnection(b.Ctx, autopahoClientConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user