feat: suppress log package logging (#3076)

To suppress uber-go/tally logs which are not structured logs.
This commit is contained in:
Ken Kaizu
2023-01-31 14:55:01 +09:00
committed by GitHub
parent 75c4c1fdcf
commit fdcb1adfb0
3 changed files with 14 additions and 0 deletions

12
server/logging/log.go Normal file
View File

@@ -0,0 +1,12 @@
package logging
import (
"io"
"log"
)
// SuppressDefaultLogging suppresses the default logging
func SuppressDefaultLogging() {
// Some packages use the default logger, so we need to suppress it. (such as uber-go/tally)
log.SetOutput(io.Discard)
}