diff options
-rw-r--r-- | modules/caddyhttp/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/server.go b/modules/caddyhttp/server.go index a931266ee..408f3358c 100644 --- a/modules/caddyhttp/server.go +++ b/modules/caddyhttp/server.go @@ -784,7 +784,7 @@ func (s *Server) logRequest( // wrapping may return multiple loggers, so we log to all of them for _, logger := range loggers { logAtLevel := logger.Info - if wrec.Status() >= 400 { + if wrec.Status() >= 500 { logAtLevel = logger.Error } message := "handled request" |