From 2e93b2eea27554234e6d78c75ca76386a41f0888 Mon Sep 17 00:00:00 2001 From: Alan Bernstein Date: Mon, 5 Apr 2021 17:02:58 -0500 Subject: [PATCH] Add some context the longquerytime log message --- http/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/handler.go b/http/handler.go index b3cc2dbc3..9f1829dc6 100644 --- a/http/handler.go +++ b/http/handler.go @@ -334,7 +334,7 @@ func (h *Handler) collectStats(next http.Handler) http.Handler { queryString = req.Query } - h.logger.Printf("%s %s %v %s", r.Method, r.URL.String(), dur, queryString) + h.logger.Printf("HTTP query duration %v exceeds %v: %s %s %s", dur, longQueryTime, r.Method, r.URL.String(), queryString) statsTags = append(statsTags, "slow:true") } else { statsTags = append(statsTags, "slow:false")