Suppress debug lines for z2m bridge/logging messages

This commit is contained in:
Darell Tan
2024-11-25 02:39:32 +08:00
parent 8fd2666b20
commit 03004e809f

View File

@@ -382,8 +382,8 @@ func (br *Bridge) handleMqttMessage(_ mqtt.Client, msg mqtt.Message) {
// spawn a goroutine to handle message, since mutex might block // spawn a goroutine to handle message, since mutex might block
go func() { go func() {
if br.DebugMode { if br.DebugMode && topic != "bridge/logging" {
log.Printf("received %s: %s", topic, payload) log.Printf("received MQTT %s: %s", topic, payload)
} }
br.hapInitMutex.RLock() br.hapInitMutex.RLock()