Skip to content

Commit

Permalink
Can't use %w with warnings, just errors
Browse files Browse the repository at this point in the history
  • Loading branch information
athornton committed Sep 20, 2023
1 parent a82e06b commit ddd0bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/parsers/avro/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func (p *Parser) createMetric(data map[string]interface{}, schema string) (teleg
sField := p.MeasurementField
sMetric, err := internal.ToString(data[sField])
if err != nil {
p.Log.Warnf("Could not convert %v to string for metric name %q: %w", data[sField], sField, err)
p.Log.Warnf("Could not convert %v to string for metric name %q: %v", data[sField], sField, err)
} else {
name = sMetric
}
Expand Down

0 comments on commit ddd0bf3

Please sign in to comment.