mirror of
https://github.com/caddyserver/caddy.git
synced 2025-03-09 07:29:03 -04:00
Second half of 6dce493
Not sure how it got unstaged
This commit is contained in:
parent
6dce4934f0
commit
399186abfc
@ -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…
x
Reference in New Issue
Block a user