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} | 		ww := &responseWriterWrapper{ResponseWriter: w} | ||||||
| 		next.ServeHTTP(ww, r) | 		next.ServeHTTP(ww, r) | ||||||
| 		duration := time.Since(start) | 		duration := time.Since(start) | ||||||
| 		// path should include url params; ai! |  | ||||||
| 		log.Debug("request completed", | 		log.Debug("request completed", | ||||||
| 			"method", r.Method, | 			"method", r.Method, | ||||||
| 			"path", r.URL.Path, | 			"path", r.URL.RequestURI(), | ||||||
| 			"status", ww.status, | 			"status", ww.status, | ||||||
| 			"duration", duration.String(), | 			"duration", duration.String(), | ||||||
| 		) | 		) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Grail Finder (aider)
					Grail Finder (aider)