Skip to content
Snippets Groups Projects
Commit 6e76731b authored by Daniel Nelson's avatar Daniel Nelson Committed by GitHub
Browse files

Don't log error creating database on connect (#2740)

closes #2739
parent c7a0e40c
No related branches found
No related tags found
No related merge requests found
...@@ -132,7 +132,9 @@ func (i *InfluxDB) Connect() error { ...@@ -132,7 +132,9 @@ func (i *InfluxDB) Connect() error {
err = c.Query("CREATE DATABASE " + i.Database) err = c.Query("CREATE DATABASE " + i.Database)
if err != nil { 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 continue
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment