chore: refactor mongo logs (#3660)

This commit is contained in:
Kevin Wan
2023-10-23 11:03:55 +08:00
committed by GitHub
parent a242fec5e1
commit 172ff407f3
4 changed files with 63 additions and 66 deletions

View File

@@ -22,13 +22,13 @@ type (
Option func(opts *options)
)
// DisableLog disables logging of mongo command, includes info and slow logs.
// DisableLog disables logging of mongo commands, includes info and slow logs.
func DisableLog() {
logMon.Set(false)
logSlowMon.Set(false)
}
// DisableInfoLog disables info logging of mongo command, but keeps slow logs.
// DisableInfoLog disables info logging of mongo commands, but keeps slow logs.
func DisableInfoLog() {
logMon.Set(false)
}