diff options
author | Martin Fischer <martin@push-f.com> | 2025-04-06 22:16:04 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-04-13 23:18:01 +0200 |
commit | 35275699ade84abefbf0b1a6c82882d8d470c8ad (patch) | |
tree | 6edd7605d2caf9696485979f695c0424f451abf7 /lex-serve/main_test.go | |
parent | 8d834d04be72597fa8a9627af3b471ab65baaa0d (diff) |
feat: use structured logging
Diffstat (limited to 'lex-serve/main_test.go')
-rw-r--r-- | lex-serve/main_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lex-serve/main_test.go b/lex-serve/main_test.go index e647a2f..00cc3a3 100644 --- a/lex-serve/main_test.go +++ b/lex-serve/main_test.go @@ -1,7 +1,9 @@ package main import ( + "log/slog" "net/http/httptest" + "os" "strings" "testing" @@ -10,6 +12,7 @@ import ( func newHandler() handler { return handler{ + logger: slog.New(slog.NewTextHandler(os.Stderr, nil)), domain: "lex.example", countries: map[string]country{ "zu": country{ |