mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
@@ -73,6 +73,7 @@ func Logger(log zerolog.Logger) mux.MiddlewareFunc {
|
||||
clientIP := r.RemoteAddr
|
||||
method := r.Method
|
||||
headers := r.Header
|
||||
delete(headers, "Authorization") // strip from logs
|
||||
statusCode := sw.status
|
||||
bodySize := sw.length
|
||||
if raw != "" {
|
||||
|
||||
Reference in New Issue
Block a user