add info log to know if a request match a registered regex
This commit is contained in:
parent
b373dd004e
commit
17c73fb900
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user