From 34ae7655a201690f3ca5801d04aeecf0c81d7251 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 21 Sep 2016 10:29:22 -0400 Subject: [PATCH] Only log warning on type when in debug mode. --- plugins/outputs/opentsdb/opentsdb.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/outputs/opentsdb/opentsdb.go b/plugins/outputs/opentsdb/opentsdb.go index b3d9b4997..1f2012469 100644 --- a/plugins/outputs/opentsdb/opentsdb.go +++ b/plugins/outputs/opentsdb/opentsdb.go @@ -114,7 +114,9 @@ func (o *OpenTSDB) WriteHttp(metrics []telegraf.Metric, u *url.URL) error { case uint64: case float64: default: - fmt.Printf("OpenTSDB does not support metric value: [%s] of type [%T].\n", value, value) + if o.Debug { + fmt.Printf("OpenTSDB does not support metric value: [%s] of type [%T].\n", value, value) + } continue }