mongodb: dont print unecessary & inaccurate auth failure

closes #2209
This commit is contained in:
Cameron Sparr 2017-01-06 13:11:24 +01:00
parent fd1feff7b4
commit 4b08d127e0
No known key found for this signature in database
GPG Key ID: 19E67263DCB25D0F
1 changed files with 0 additions and 1 deletions

View File

@ -130,7 +130,6 @@ func (m *MongoDB) gatherServer(server *Server, acc telegraf.Accumulator) error {
sess, err := mgo.DialWithInfo(dialInfo)
if err != nil {
fmt.Printf("error dialing over ssl, %s\n", err.Error())
return fmt.Errorf("Unable to connect to MongoDB, %s\n", err.Error())
}
server.Session = sess