mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-06 03:57:48 +01:00
admin: don't log normal 2xx/3xx HTTP requests (incl. 304 cache hits)
This commit is contained in:
1 parent
65484cb4bb
commit
0c343e76eb
1 file changed
+2
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user