mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 12:24:38 +03:00
use debug logging in tests
by setting the loglevel to debug in package mlog. we restore the "info" logging in main. except for "mox localserve", which still sets debug by default.
This commit is contained in:
@ -43,7 +43,7 @@ var lowestLevel atomic.Int32 // For quick initial check.
|
||||
var config atomic.Pointer[map[string]slog.Level] // For secondary complete check for match.
|
||||
|
||||
func init() {
|
||||
SetConfig(map[string]slog.Level{"": LevelInfo})
|
||||
SetConfig(map[string]slog.Level{"": LevelDebug})
|
||||
}
|
||||
|
||||
// SetConfig atomically sets the new log levels used by all Log instances.
|
||||
|
Reference in New Issue
Block a user