feat: include URL params in request logging
This commit is contained in:
		| @@ -29,10 +29,9 @@ func LogRequests(next http.Handler) http.Handler { | ||||
| 		ww := &responseWriterWrapper{ResponseWriter: w} | ||||
| 		next.ServeHTTP(ww, r) | ||||
| 		duration := time.Since(start) | ||||
| 		// path should include url params; ai! | ||||
| 		log.Debug("request completed", | ||||
| 			"method", r.Method, | ||||
| 			"path", r.URL.Path, | ||||
| 			"path", r.URL.RequestURI(), | ||||
| 			"status", ww.status, | ||||
| 			"duration", duration.String(), | ||||
| 		) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder (aider)
					Grail Finder (aider)