MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Mute

Function Mute

logger/logger.go:88–90  ·  view source on GitHub ↗

Mute sets the default logger to a discard logger muting all log output

()

Source from the content-addressed store, hash-verified

86
87// Mute sets the default logger to a discard logger muting all log output
88func Mute() {
89 setDefaultHandler(slog.DiscardHandler)
90}
91
92// Unmute restores the default logger to the one created in [Init]
93func Unmute() {

Callers 3

SetupSuiteMethod · 0.92
SetupSuiteMethod · 0.92
SetupSuiteMethod · 0.92

Calls 1

setDefaultHandlerFunction · 0.85

Tested by 2

SetupSuiteMethod · 0.74
SetupSuiteMethod · 0.74