add info log to know if a request match a registered regex

This commit is contained in:
Adrien PONSIN 2025-04-17 13:04:12 +02:00
parent b373dd004e
commit 17c73fb900
No known key found for this signature in database
GPG Key ID: 7B4D4A32C05C475E

View File

@ -174,6 +174,12 @@ func (ph *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
log.Err(err).Send() log.Err(err).Send()
return 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) ph.rp.ServeHTTP(w, r)
return return
} }