diff --git a/command/serve.go b/command/serve.go index 6ff7e40..2869544 100644 --- a/command/serve.go +++ b/command/serve.go @@ -148,7 +148,7 @@ func Serve(group *errgroup.Group) *cli.Command { } func (ph *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { - log.Debug().Str("remote_addr", r.RemoteAddr).Str("http_method", r.Method).Str("path", r.URL.Path).Msg("incoming request") + log.Debug().Str("remote_addr", r.RemoteAddr).Str("method", r.Method).Str("path", r.URL.Path).Msg("incoming request") mr, ok := containerMethodRegex["*"] if ok { if err := checkMethodPath(r, mr); err != nil { @@ -176,9 +176,9 @@ func (ph *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { } log.Info(). Str("remote_addr", r.RemoteAddr). - Str("http_method", r.Method). + Str("method", r.Method). Str("path", r.URL.Path). - Str("container_name", containerName). + Str("from", containerName). Msg("incoming request matches a registered regular expression") ph.rp.ServeHTTP(w, r) return