From b44541a65d59e30eae73614f390456a7052fb5c5 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Fri, 4 Oct 2024 12:42:28 +0200 Subject: [PATCH] Pass error log to http server (#28) Otherwise errors will be logged on info which is confusing when inspecting logs. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 018fbfe..9e75c25 100644 --- a/main.go +++ b/main.go @@ -147,7 +147,7 @@ func startPushServer(out chan<- *net.IP, localIp *net.IP) { s := &http.Server{ Addr: bind, - ErrorLog: slog.NewLogLogger(slog.Default().Handler(), slog.LevelInfo), + ErrorLog: slog.NewLogLogger(slog.Default().Handler(), slog.LevelError), } http.HandleFunc("/ip", server.Handler)