mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 07:54:40 +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:
@ -37,6 +37,7 @@ func TestClient(t *testing.T) {
|
||||
log := mlog.New("smtpclient", nil)
|
||||
|
||||
mlog.SetConfig(map[string]slog.Level{"": mlog.LevelTrace})
|
||||
defer mlog.SetConfig(map[string]slog.Level{"": mlog.LevelDebug})
|
||||
|
||||
type options struct {
|
||||
// Server behaviour.
|
||||
|
Reference in New Issue
Block a user