2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 11:27:17 +08:00

fix: 删错了

This commit is contained in:
2025-10-11 00:44:05 +08:00
parent 2fefba51e1
commit 4708196ba2

View File

@@ -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