Log mongodb oplog auth errors at debug level (#6742)
This commit is contained in:
parent
1b25a9c910
commit
cf78f4e11e
|
@ -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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue