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

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
}