diff --git a/modules/caddyhttp/server.go b/modules/caddyhttp/server.go index 964b2a46..fa153cd2 100644 --- a/modules/caddyhttp/server.go +++ b/modules/caddyhttp/server.go @@ -259,11 +259,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { if err2 == nil { // user's error route handled the error response // successfully, so now just log the error - if errStatus >= 500 { - logger.Error(errMsg, errFields...) - } else { - logger.Debug(errMsg, errFields...) - } + logger.Debug(errMsg, errFields...) } else { // well... this is awkward errFields = append([]zapcore.Field{