mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-27 23:03:37 -05:00
Fixes crash if logging error is not HandlerError
This commit is contained in:
parent
e48b75843b
commit
68d1d1b003
1 changed files with 5 additions and 0 deletions
|
@ -211,6 +211,11 @@ func errLogValues(err error) (status int, msg string, fields func() []zapcore.Fi
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
fields = func() []zapcore.Field {
|
||||||
|
return []zapcore.Field{
|
||||||
|
zap.Error(err),
|
||||||
|
}
|
||||||
|
}
|
||||||
status = http.StatusInternalServerError
|
status = http.StatusInternalServerError
|
||||||
msg = err.Error()
|
msg = err.Error()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue