From 4abacc52cd011d9c8f5698908b40753dd9feefdb Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Fri, 16 Feb 2018 15:55:26 -0800 Subject: [PATCH] Show HTTP request method --- command/agent/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/http.go b/command/agent/http.go index dc147b142..5fbc94271 100644 --- a/command/agent/http.go +++ b/command/agent/http.go @@ -281,7 +281,7 @@ func (s *HTTPServer) wrap(handler func(resp http.ResponseWriter, req *http.Reque reqURL := req.URL.String() start := time.Now() defer func() { - s.logger.Printf("[DEBUG] http: Request %v (%v)", reqURL, time.Now().Sub(start)) + s.logger.Printf("[DEBUG] http: Request %v %v (%v)", req.Method, reqURL, time.Now().Sub(start)) }() obj, err := handler(resp, req)