From 0c343e76eb80f4435e10fdf47940e228925020d0 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 17 Jun 2026 11:34:38 -0700 Subject: [PATCH] admin: don't log normal 2xx/3xx HTTP requests (incl. 304 cache hits) --- weed/command/admin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weed/command/admin.go b/weed/command/admin.go index daa1b5cdc..e89a24d70 100644 --- a/weed/command/admin.go +++ b/weed/command/admin.go @@ -565,7 +565,8 @@ func loggingMiddleware(next http.Handler) http.Handler { if status == 0 { status = http.StatusOK } - if status >= 200 && status < 300 { + // Only log errors; 2xx/3xx (including 304 Not Modified cache hits) are normal. + if status < 400 { return }