Skip to content

Commit

Permalink
Show HTTP request method
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Feb 16, 2018
1 parent ebb8587 commit 4abacc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/agent/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4abacc5

Please sign in to comment.