mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-25 09:40:13 +08:00
http: Add response headers to access logs
This commit is contained in:
parent
16782d9988
commit
a19da07b72
|
@ -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 New Issue
Block a user