mirror of
https://github.com/mjl-/mox.git
synced 2025-07-13 13:34:37 +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:
@ -1119,6 +1119,7 @@ func TestRatelimitConnectionrate(t *testing.T) {
|
||||
// We'll be creating 300 connections, no TLS and reduce noise.
|
||||
ts.tlsmode = smtpclient.TLSSkip
|
||||
mlog.SetConfig(map[string]slog.Level{"": mlog.LevelInfo})
|
||||
defer mlog.SetConfig(map[string]slog.Level{"": mlog.LevelDebug})
|
||||
|
||||
// We may be passing a window boundary during this tests. The limit is 300/minute.
|
||||
// So make twice that many connections and hope the tests don't take too long.
|
||||
|
Reference in New Issue
Block a user