Skip to content

Commit

Permalink
logging: Prep for common_log removal
Browse files Browse the repository at this point in the history
  • Loading branch information
francislavoie committed May 6, 2021
1 parent d4b2f1b commit 8b77895
Show file tree
Hide file tree
Showing 2 changed files with 355 additions and 352 deletions.
1 change: 1 addition & 0 deletions modules/caddyhttp/server.go
Expand Up @@ -186,6 +186,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {

log("handled request",
zap.String("common_log", repl.ReplaceAll(commonLogFormat, commonLogEmptyValue)),
zap.String("user_id", repl.ReplaceAll("{http.auth.user.id}", "")),
zap.Duration("duration", duration),
zap.Int("size", wrec.Size()),
zap.Int("status", wrec.Status()),
Expand Down

0 comments on commit 8b77895

Please sign in to comment.