From 156c338ce7f102534028b10dcbccf299306fc1fb Mon Sep 17 00:00:00 2001 From: Adrien PONSIN Date: Tue, 15 Apr 2025 20:08:28 +0200 Subject: [PATCH] debug logs --- command/serve.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/serve.go b/command/serve.go index 607e8f5..9ad6603 100644 --- a/command/serve.go +++ b/command/serve.go @@ -194,6 +194,7 @@ func (ph *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { func checkMethodPath(w http.ResponseWriter, r *http.Request, mr methodRegex) error { req, ok := mr[r.Method] if !ok { + log.Debug().Msgf("%s is not a registerd HTTP method", r.Method) http.Error(w, http.StatusText(http.StatusMethodNotAllowed), http.StatusMethodNotAllowed) return ErrHTTPMethodNotAllowed{httpMethod: r.Method} }