fix(parsers.avro): Clean up Warnf error wrapping error (#13961)

This commit is contained in:
Joshua Powers 2023-09-20 12:50:28 -06:00 committed by GitHub
parent fbe2fb47eb
commit 1b27556feb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,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: %s", data[sField], sField, err.Error())
} else {
name = sMetric
}