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 fb225d69f8
commit c9089b4700
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