Skip to content

Commit

Permalink
ttn converter: suppress logging for messages with no brand/model
Browse files Browse the repository at this point in the history
  • Loading branch information
koestler committed Jan 24, 2024
1 parent df293bb commit 9214a15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion converter/ttn.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ func ttnHandler(c Config, tm TopicMatcher, input Input, outputFunc OutputFunc) {
case "sensecap":
ttnSensecapHandler(c, device, model, input, outputFunc)
default:
log.Printf("ttn[%s]: there is now decoder for brand='%s', model='%s'", c.Name(), brand, model)
if brand != "" || model != "" {
log.Printf("ttn[%s]: there is now decoder for brand='%s', model='%s'", c.Name(), brand, model)
}
}
}

0 comments on commit 9214a15

Please sign in to comment.