diff options
author | Valery Piashchynski <[email protected]> | 2021-01-19 14:57:58 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-19 14:57:58 +0300 |
commit | 75ebbaac89ce8ebc3ab8de47b16e137844cfcd8a (patch) | |
tree | ff51fa5552b897db6e118f3da6771f248efaeaa6 /plugins/http/plugin.go | |
parent | 8704e833dffd7d41614830b5347ba15fa9f297fd (diff) | |
parent | d34f7defd974918d64c225a535a2d98f3f7294cf (diff) |
Merge pull request #486 from spiral/refactor/better_http_debug_logs
refactor(http): Uniform debug message from the http hanlder
Diffstat (limited to 'plugins/http/plugin.go')
-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 2e00a91a..f35c321b 100644 --- a/plugins/http/plugin.go +++ b/plugins/http/plugin.go @@ -120,7 +120,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, + ) } } |