From 17c73fb900dd783b31f98f7b4e1997bbfbfc8b93 Mon Sep 17 00:00:00 2001 From: Adrien PONSIN Date: Thu, 17 Apr 2025 13:04:12 +0200 Subject: [PATCH] add info log to know if a request match a registered regex --- command/serve.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/command/serve.go b/command/serve.go index 252ea1a..6ff7e40 100644 --- a/command/serve.go +++ b/command/serve.go @@ -174,6 +174,12 @@ func (ph *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { log.Err(err).Send() return } + log.Info(). + Str("remote_addr", r.RemoteAddr). + Str("http_method", r.Method). + Str("path", r.URL.Path). + Str("container_name", containerName). + Msg("incoming request matches a registered regular expression") ph.rp.ServeHTTP(w, r) return }