mirror of
https://github.com/nikdoof/hapz2m.git
synced 2026-01-30 19:48:26 +00:00
Suppress debug lines for z2m bridge/logging messages
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user