From 4708196ba2a3dc3503a0c2f2634d2c6f67fc809c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 11 Oct 2025 00:44:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=94=99=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/http/middleware/middleware.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/http/middleware/middleware.go b/internal/http/middleware/middleware.go index 8d1c88da..e05c526b 100644 --- a/internal/http/middleware/middleware.go +++ b/internal/http/middleware/middleware.go @@ -52,6 +52,7 @@ func (r *Middlewares) Globals(t *gotext.Locale, mux *chi.Mux) []func(http.Handle middleware.Recoverer, //middleware.SupressNotFound(mux),// bug https://github.com/go-chi/chi/pull/940 httplog.RequestLogger(r.log, &httplog.Options{ + Level: slog.LevelInfo, LogRequestHeaders: []string{"User-Agent"}, Skip: func(req *http.Request, respStatus int) bool { return respStatus == 404 || respStatus == 405