aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api/http/middleware.go
diff options
context:
space:
mode:
Diffstat (limited to 'swarm/api/http/middleware.go')
-rw-r--r--swarm/api/http/middleware.go2
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)
})