diff options
author | Elad <theman@elad.im> | 2018-08-10 19:49:37 +0800 |
---|---|---|
committer | Balint Gabor <balint.g@gmail.com> | 2018-08-10 19:49:37 +0800 |
commit | 3ec5dda4d2dd0dec6d5bd465752f30e8f6ce208c (patch) | |
tree | 45d10898a4b86b2a7185272e1317e5b96315a6dd /swarm/api/http/middleware.go | |
parent | 45eaef24319897f5b1679c9d1aa7d88702cce905 (diff) | |
download | go-tangerine-3ec5dda4d2dd0dec6d5bd465752f30e8f6ce208c.tar go-tangerine-3ec5dda4d2dd0dec6d5bd465752f30e8f6ce208c.tar.gz go-tangerine-3ec5dda4d2dd0dec6d5bd465752f30e8f6ce208c.tar.bz2 go-tangerine-3ec5dda4d2dd0dec6d5bd465752f30e8f6ce208c.tar.lz go-tangerine-3ec5dda4d2dd0dec6d5bd465752f30e8f6ce208c.tar.xz go-tangerine-3ec5dda4d2dd0dec6d5bd465752f30e8f6ce208c.tar.zst go-tangerine-3ec5dda4d2dd0dec6d5bd465752f30e8f6ce208c.zip |
swarm/api/http: added logging to denote request ended (#17371)
Diffstat (limited to 'swarm/api/http/middleware.go')
-rw-r--r-- | swarm/api/http/middleware.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/api/http/middleware.go b/swarm/api/http/middleware.go index d338a782c..c0d8d1a40 100644 --- a/swarm/api/http/middleware.go +++ b/swarm/api/http/middleware.go @@ -64,8 +64,8 @@ func ParseURI(h http.Handler) http.Handler { func InitLoggingResponseWriter(h http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { writer := newLoggingResponseWriter(w) - h.ServeHTTP(writer, r) + log.Debug("request served", "ruid", GetRUID(r.Context()), "code", writer.statusCode) }) } |