mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05:00
parent
6dce4934f0
commit
399186abfc
1 changed files with 5 additions and 2 deletions
|
@ -787,8 +787,11 @@ func (s *Server) logRequest(
|
|||
if wrec.Status() >= 400 {
|
||||
logAtLevel = logger.Error
|
||||
}
|
||||
|
||||
logAtLevel("handled request", fields...)
|
||||
message := "handled request"
|
||||
if nop, ok := GetVar(r.Context(), "unhandled").(bool); ok && nop {
|
||||
message = "NOP"
|
||||
}
|
||||
logAtLevel(message, fields...)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue