Skip to content

Commit

Permalink
mongodb: dont print unecessary & inaccurate auth failure
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrc committed Jan 6, 2017
1 parent fd1feff commit 4b08d12
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion plugins/inputs/mongodb/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b08d12

Please sign in to comment.