Only log warning on type when in debug mode.

This commit is contained in:
Eric 2016-09-21 10:29:22 -04:00
parent 8b8c64e748
commit 34ae7655a2
1 changed files with 3 additions and 1 deletions

View File

@ -114,7 +114,9 @@ func (o *OpenTSDB) WriteHttp(metrics []telegraf.Metric, u *url.URL) error {
case uint64:
case float64:
default:
if o.Debug {
fmt.Printf("OpenTSDB does not support metric value: [%s] of type [%T].\n", value, value)
}
continue
}