Second half of 6dce493

Not sure how it got unstaged
This commit is contained in:
Matthew Holt
2024-05-10 15:51:28 -06:00
parent 6dce4934f0
commit 399186abfc

View File

@@ -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...)
}
}