Log mongodb oplog auth errors at debug level (#6742)

This commit is contained in:
Daniel Nelson 2019-12-03 11:26:51 -08:00 committed by GitHub
parent 1b25a9c910
commit cf78f4e11e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ func (s *Server) gatherData(acc telegraf.Accumulator, gatherDbStats bool, gather
if replSetStatus != nil { if replSetStatus != nil {
oplogStats, err = s.gatherOplogStats() oplogStats, err = s.gatherOplogStats()
if err != nil { if err != nil {
return err s.authLog(fmt.Errorf("Unable to get oplog stats: %v", err))
} }
} }