mirror of
https://github.com/nikdoof/hapz2m.git
synced 2026-01-30 04:38:20 +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
|
// 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()
|
||||||
|
|||||||
Reference in New Issue
Block a user