Correct error message when converting to a float
This commit is contained in:
@@ -240,7 +240,7 @@ func (p *Converter) convertFields(metric telegraf.Metric) {
|
|||||||
v, ok := toFloat(value)
|
v, ok := toFloat(value)
|
||||||
if !ok {
|
if !ok {
|
||||||
metric.RemoveField(key)
|
metric.RemoveField(key)
|
||||||
logPrintf("error converting to integer [%T]: %v\n", value, value)
|
logPrintf("error converting to float [%T]: %v\n", value, value)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user