diff options
Diffstat (limited to 'swarm/api')
-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 f7f819eab..320da3046 100644 --- a/swarm/api/http/middleware.go +++ b/swarm/api/http/middleware.go @@ -80,7 +80,7 @@ func InitLoggingResponseWriter(h http.Handler) http.Handler { h.ServeHTTP(writer, r) ts := time.Since(tn) - log.Info("request served", "ruid", GetRUID(r.Context()), "code", writer.statusCode, "time", ts*time.Millisecond) + log.Info("request served", "ruid", GetRUID(r.Context()), "code", writer.statusCode, "time", ts) metrics.GetOrRegisterResettingTimer(fmt.Sprintf("http.request.%s.time", r.Method), nil).Update(ts) metrics.GetOrRegisterResettingTimer(fmt.Sprintf("http.request.%s.%d.time", r.Method, writer.statusCode), nil).Update(ts) }) |