We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ec2934 commit 12d38bcCopy full SHA for 12d38bc
api/middleware.go
@@ -18,7 +18,10 @@ func TopMiddleware(handler http.Handler) http.Handler {
18
19
//nolint:varnamelen
20
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
21
- logger.Infof("[%s %s]", r.Method, r.URL.Path)
+ // Log only non-GET requests to reduce noise from frequent polling.
22
+ if r.Method != http.MethodGet {
23
+ logger.Debugf("[%s %s]", r.Method, r.URL.Path)
24
+ }
25
26
// Goes through all local interceptors.
27
req := RedirectToDefaultResourceInterceptor(
0 commit comments