From 0831d50e1cc1e56cb44b788e25f7b7972e825748 Mon Sep 17 00:00:00 2001 From: Matthew Jaffee Date: Mon, 14 Aug 2017 13:33:09 -0500 Subject: [PATCH] fix log which treats time.Duration as secs instead of ns --- handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler.go b/handler.go index ab7a51c06..f3bf5c786 100644 --- a/handler.go +++ b/handler.go @@ -162,7 +162,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { statsTags := make([]string, 0, 3) if h.Cluster.LongQueryTime > 0 && dif > h.Cluster.LongQueryTime { - h.logger().Printf("%s %s %.03fs", r.Method, r.URL.String(), float64(dif)) + h.logger().Printf("%s %s %v", r.Method, r.URL.String(), dif) statsTags = append(statsTags, "slow_query") }