mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 06:03:48 +03: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 {
|
if wrec.Status() >= 400 {
|
||||||
logAtLevel = logger.Error
|
logAtLevel = logger.Error
|
||||||
}
|
}
|
||||||
|
message := "handled request"
|
||||||
logAtLevel("handled request", fields...)
|
if nop, ok := GetVar(r.Context(), "unhandled").(bool); ok && nop {
|
||||||
|
message = "NOP"
|
||||||
|
}
|
||||||
|
logAtLevel(message, fields...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue