Correct error message when converting to a float

This commit is contained in:
Daniel Nelson 2019-07-23 16:58:31 -07:00
parent 4e59d51844
commit 9fc8976c66
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ func (p *Converter) convertFields(metric telegraf.Metric) {
v, ok := toFloat(value)
if !ok {
metric.RemoveField(key)
logPrintf("error converting to integer [%T]: %v\n", value, value)
logPrintf("error converting to float [%T]: %v\n", value, value)
continue
}