aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api
diff options
context:
space:
mode:
authorAnton Evangelatov <anton.evangelatov@gmail.com>2019-01-03 22:32:58 +0800
committerGitHub <noreply@github.com>2019-01-03 22:32:58 +0800
commit49975264a8d37aa9af1a2b71015059245c0c2e0b (patch)
tree83738c338fae0fc68332c71adf655f05f656e4da /swarm/api
parent1ea5279d5d7cd44ab18d72a2d26f1ad03b8d2b5e (diff)
downloaddexon-49975264a8d37aa9af1a2b71015059245c0c2e0b.tar.gz
dexon-49975264a8d37aa9af1a2b71015059245c0c2e0b.tar.zst
dexon-49975264a8d37aa9af1a2b71015059245c0c2e0b.zip
swarm/docker: Dockerfile for swarm:edge docker image (#18386)
Diffstat (limited to 'swarm/api')
-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)
})