mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05:00
http: Add response headers to access logs
This commit is contained in:
parent
16782d9988
commit
a19da07b72
1 changed files with 1 additions and 0 deletions
|
@ -121,6 +121,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||
zap.Duration("latency", latency),
|
||||
zap.Int("size", wrec.Size()),
|
||||
zap.Int("status", wrec.Status()),
|
||||
zap.Object("resp_headers", LoggableHTTPHeader(wrec.Header())),
|
||||
)
|
||||
}()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue