mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
logs: sanitize logs
This commit is contained in:
parent
d99586597b
commit
64b9482985
1 changed files with 1 additions and 0 deletions
|
@ -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 != "" {
|
||||
|
|
Loading…
Reference in a new issue