mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-28 21:38:25 +00:00
feat: suppress log package logging (#3076)
To suppress uber-go/tally logs which are not structured logs.
This commit is contained in:
12
server/logging/log.go
Normal file
12
server/logging/log.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user