Skip to content

Commit

Permalink
Add addTag debugging in ifname plugin (#8018)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hipska authored Aug 26, 2020
1 parent 60d402d commit 54f9e33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/processors/ifname/ifname.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ func (d *IfName) Init() error {
func (d *IfName) addTag(metric telegraf.Metric) error {
agent, ok := metric.GetTag(d.AgentTag)
if !ok {
//agent tag missing
d.Log.Warn("Agent tag missing.")
return nil
}

num_s, ok := metric.GetTag(d.SourceTag)
if !ok {
//source tag missing
d.Log.Warn("Source tag missing.")
return nil
}

Expand Down

0 comments on commit 54f9e33

Please sign in to comment.