Merge pull request #33 from rchincha/logs

logs: sanitize logs
This commit is contained in:
Tycho Andersen 2019-10-24 14:32:22 -06:00 committed by GitHub
commit a1a05a8a41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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