Skip to content

Commit 12d38bc

Browse files
committed
remove noisy api log
1 parent 8ec2934 commit 12d38bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

api/middleware.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ func TopMiddleware(handler http.Handler) http.Handler {
1818

1919
//nolint:varnamelen
2020
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
21-
logger.Infof("[%s %s]", r.Method, r.URL.Path)
21+
// 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+
}
2225

2326
// Goes through all local interceptors.
2427
req := RedirectToDefaultResourceInterceptor(

0 commit comments

Comments
 (0)