Only log warning on type when in debug mode.
This commit is contained in:
parent
8b8c64e748
commit
34ae7655a2
|
@ -114,7 +114,9 @@ func (o *OpenTSDB) WriteHttp(metrics []telegraf.Metric, u *url.URL) error {
|
||||||
case uint64:
|
case uint64:
|
||||||
case float64:
|
case float64:
|
||||||
default:
|
default:
|
||||||
|
if o.Debug {
|
||||||
fmt.Printf("OpenTSDB does not support metric value: [%s] of type [%T].\n", value, value)
|
fmt.Printf("OpenTSDB does not support metric value: [%s] of type [%T].\n", value, value)
|
||||||
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue