Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

admin: don't log normal 2xx/3xx HTTP requests (incl. 304 cache hits)

Chris Lu0c343e76eb80
diff --git a/weed/command/admin.go b/weed/command/admin.go
index daa1b5cdcc..e89a24d701 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
}