chore(outputs.mqtt): Remove dead code (#15487)

This commit is contained in:
Sven Rebhan 2024-06-12 11:15:15 -04:00 committed by GitHub
parent 28543bae7c
commit 99b840c253
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 5 deletions

View File

@ -269,11 +269,6 @@ func (m *MQTT) collectHomieV4(hostname string, metrics []telegraf.Metric) []mess
collection = append(collection, msgs...)
for _, tag := range metric.TagList() {
if err != nil {
m.Log.Warnf("Could not serialize metric for topic %q tag %q: %v", topic, tag.Key, err)
m.Log.Debugf("metric was: %v", metric)
continue
}
propID := normalizeID(tag.Key)
collection = append(collection,
message{path + "/" + propID, []byte(tag.Value)},