logs: sanitize logs
This commit is contained in:
parent
d99586597b
commit
64b9482985
@ -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…
x
Reference in New Issue
Block a user