Skip to content

Commit 1966d3c

Browse files
committed
debug logs in tests
1 parent 0521abe commit 1966d3c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

logger_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package flagsmith
2+
3+
import (
4+
"log/slog"
5+
"os"
6+
"testing"
7+
)
8+
9+
func TestMain(m *testing.M) {
10+
handler := slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{
11+
Level: slog.LevelDebug,
12+
})
13+
slog.SetDefault(slog.New(handler))
14+
15+
os.Exit(m.Run())
16+
}

0 commit comments

Comments
 (0)