mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-13 19:02:15 +01:00
all logs now have an op field
This commit is contained in:
@@ -20,8 +20,9 @@ func Error() echo.MiddlewareFunc {
|
||||
}
|
||||
// we log the initial error before returning
|
||||
// the HTTP error.
|
||||
errOp := standarderror.Op(err)
|
||||
logger := ctx.StandardLogger()
|
||||
logger.Error(err.Error())
|
||||
logger.ErrorOp(errOp, err)
|
||||
// handle our custom HTTP error.
|
||||
var httpErr error
|
||||
errCode := standarderror.Code(err)
|
||||
|
||||
Reference in New Issue
Block a user