From 03004e809f92596ca2d0288c9ff6b8b85fa2ba4f Mon Sep 17 00:00:00 2001 From: Darell Tan Date: Mon, 25 Nov 2024 02:39:32 +0800 Subject: [PATCH] Suppress debug lines for z2m bridge/logging messages --- bridge.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge.go b/bridge.go index f9c5c36..6a47767 100644 --- a/bridge.go +++ b/bridge.go @@ -382,8 +382,8 @@ func (br *Bridge) handleMqttMessage(_ mqtt.Client, msg mqtt.Message) { // spawn a goroutine to handle message, since mutex might block go func() { - if br.DebugMode { - log.Printf("received %s: %s", topic, payload) + if br.DebugMode && topic != "bridge/logging" { + log.Printf("received MQTT %s: %s", topic, payload) } br.hapInitMutex.RLock()