1
0
mirror of https://github.com/kataras/iris.git synced 2026-03-06 00:16:12 +00:00

accesslog: log error bodies and communicate with the recover middleware

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-09-10 14:47:14 +03:00
parent cf0338d342
commit ae67987f55
7 changed files with 142 additions and 15 deletions

View File

@@ -162,6 +162,10 @@ type (
// Locale describes the i18n locale.
// An alias for the `context.Locale`.
Locale = context.Locale
// ErrPrivate if provided then the error saved in context
// should NOT be visible to the client no matter what.
// An alias for the `context.ErrPrivate`.
ErrPrivate = context.ErrPrivate
)
// Constants for input argument at `router.RouteRegisterRule`.
@@ -458,6 +462,8 @@ var (
// on post data, versioning feature and others.
// An alias of `context.ErrNotFound`.
ErrNotFound = context.ErrNotFound
// IsErrPrivate reports whether the given "err" is a private one.
IsErrPrivate = context.IsErrPrivate
// NewProblem returns a new Problem.
// Head over to the `Problem` type godoc for more.
//