mirror of
https://github.com/project-zot/zot.git
synced 2025-01-06 22:40:28 -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
|
clientIP := r.RemoteAddr
|
||||||
method := r.Method
|
method := r.Method
|
||||||
headers := r.Header
|
headers := r.Header
|
||||||
|
delete(headers, "Authorization") // strip from logs
|
||||||
statusCode := sw.status
|
statusCode := sw.status
|
||||||
bodySize := sw.length
|
bodySize := sw.length
|
||||||
if raw != "" {
|
if raw != "" {
|
||||||
|
|
Loading…
Reference in a new issue