summaryrefslogtreecommitdiff
path: root/lex-serve/main_test.go
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-04-06 22:16:04 +0200
committerMartin Fischer <martin@push-f.com>2025-04-13 23:18:01 +0200
commit35275699ade84abefbf0b1a6c82882d8d470c8ad (patch)
tree6edd7605d2caf9696485979f695c0424f451abf7 /lex-serve/main_test.go
parent8d834d04be72597fa8a9627af3b471ab65baaa0d (diff)
feat: use structured logging
Diffstat (limited to 'lex-serve/main_test.go')
-rw-r--r--lex-serve/main_test.go3
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{