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:
Mechiel Lukkien
2024-05-10 15:15:56 +02:00
parent bf8cfd9724
commit 9152384fd3
9 changed files with 44 additions and 20 deletions

View File

@ -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.