diff options
author | Valery Piashchynski <[email protected]> | 2021-01-19 13:48:43 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-01-19 13:48:43 +0300 |
commit | 9bb05ec11065e765d14701f3f0c6aef19640dff7 (patch) | |
tree | 10e88d11ac3571c701d06e3671e6e2b538d879ed /plugins/http | |
parent | a9a206b31e272e0508fff496e9641c4db291ddb7 (diff) |
Uniform debug message from the http hanlder
Update tests
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/http')
-rw-r--r-- | plugins/http/plugin.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/http/plugin.go b/plugins/http/plugin.go index 222bf852..559205a3 100644 --- a/plugins/http/plugin.go +++ b/plugins/http/plugin.go @@ -115,7 +115,13 @@ func (s *Plugin) Init(cfg config.Configurer, log logger.Logger, server server.Se func (s *Plugin) logCallback(event interface{}) { if ev, ok := event.(ResponseEvent); ok { - s.log.Debug("http handler response received", "elapsed", ev.Elapsed().String(), "remote address", ev.Request.RemoteAddr) + s.log.Debug("", + "remote", ev.Request.RemoteAddr, + "ts", ev.Elapsed().String(), + "resp.status", ev.Response.Status, + "method", ev.Request.Method, + "uri", ev.Request.URI, + ) } } |