mirror of https://github.com/caddyserver/caddy.git
caddyhttp: Always log handled errors at debug level (#4584)
This commit is contained in:
parent
0de51593a6
commit
ddbb234d91
|
@ -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...)
|
||||
}
|
||||
} else {
|
||||
// well... this is awkward
|
||||
errFields = append([]zapcore.Field{
|
||||
|
|
Loading…
Reference in New Issue