0
Fork 0
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:
Ramkumar Chinchani 2019-10-24 13:15:29 -07:00
parent d99586597b
commit 64b9482985

View file

@ -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 != "" {