From ec6ed1303d9c7a77a02c3644a6101acefa236e29 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Fri, 28 Apr 2017 15:58:46 -0700 Subject: [PATCH] Don't log error creating database on connect (#2740) closes #2739 --- plugins/outputs/influxdb/influxdb.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/outputs/influxdb/influxdb.go b/plugins/outputs/influxdb/influxdb.go index f0e138156..2dac7a00a 100644 --- a/plugins/outputs/influxdb/influxdb.go +++ b/plugins/outputs/influxdb/influxdb.go @@ -132,7 +132,9 @@ func (i *InfluxDB) Connect() error { err = c.Query("CREATE DATABASE " + i.Database) if err != nil { - log.Println("E! Database creation failed: " + err.Error()) + if !strings.Contains(err.Error(), "Status Code [403]") { + log.Println("I! Database creation failed: " + err.Error()) + } continue } }