Commit 8466ed04 authored by ale's avatar ale

Clarify request logs by including the URL

parent 955d31f0
Pipeline #3341 passed with stages
in 4 minutes and 35 seconds
......@@ -113,10 +113,10 @@ func (s *APIServer) ServeHTTP(w http.ResponseWriter, req *http.Request) {
// (sanitization might modify the objects in place).
reqData := marshalJSONSanitized(r)
if err != nil {
log.Printf("request: %s -> %v", reqData, err)
log.Printf("request: %s %s -> ERROR: %v", req.URL.Path, reqData, err)
} else {
respData := marshalJSONSanitized(resp)
log.Printf("request: %s -> %s", reqData, respData)
log.Printf("request: %s %s -> %s", req.URL.Path, reqData, respData)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment