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

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