From c872cecc673f3cec3dc9265e008a1dbf290c0f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Wed, 9 Aug 2023 10:39:14 +0200 Subject: [PATCH] v0.0.234 --- exerr/errinit.go | 39 +++++++++++++++++++++------------------ goextVersion.go | 4 ++-- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/exerr/errinit.go b/exerr/errinit.go index 7c2d1a2..e7759a7 100644 --- a/exerr/errinit.go +++ b/exerr/errinit.go @@ -16,23 +16,25 @@ type ErrorPackageConfig struct { } type ErrorPackageConfigInit struct { - ZeroLogErrTraces bool - ZeroLogAllTraces bool - RecursiveErrors bool - ExtendedGinOutput bool - ExtendGinOutput func(err *ExErr, json map[string]any) - ExtendGinDataOutput func(err *ExErr, depth int, json map[string]any) + ZeroLogErrTraces bool + ZeroLogAllTraces bool + RecursiveErrors bool + ExtendedGinOutput bool + IncludeMetaInGinOutput bool + ExtendGinOutput func(err *ExErr, json map[string]any) + ExtendGinDataOutput func(err *ExErr, depth int, json map[string]any) } var initialized = false var pkgconfig = ErrorPackageConfig{ - ZeroLogErrTraces: true, - ZeroLogAllTraces: false, - RecursiveErrors: true, - ExtendedGinOutput: false, - ExtendGinOutput: func(err *ExErr, json map[string]any) {}, - ExtendGinDataOutput: func(err *ExErr, depth int, json map[string]any) {}, + ZeroLogErrTraces: true, + ZeroLogAllTraces: false, + RecursiveErrors: true, + ExtendedGinOutput: false, + IncludeMetaInGinOutput: true, + ExtendGinOutput: func(err *ExErr, json map[string]any) {}, + ExtendGinDataOutput: func(err *ExErr, depth int, json map[string]any) {}, } // Init initializes the exerr packages @@ -54,12 +56,13 @@ func Init(cfg ErrorPackageConfigInit) { } pkgconfig = ErrorPackageConfig{ - ZeroLogErrTraces: cfg.ZeroLogErrTraces, - ZeroLogAllTraces: cfg.ZeroLogAllTraces, - RecursiveErrors: cfg.RecursiveErrors, - ExtendedGinOutput: cfg.ExtendedGinOutput, - ExtendGinOutput: ego, - ExtendGinDataOutput: egdo, + ZeroLogErrTraces: cfg.ZeroLogErrTraces, + ZeroLogAllTraces: cfg.ZeroLogAllTraces, + RecursiveErrors: cfg.RecursiveErrors, + ExtendedGinOutput: cfg.ExtendedGinOutput, + IncludeMetaInGinOutput: cfg.IncludeMetaInGinOutput, + ExtendGinOutput: ego, + ExtendGinDataOutput: egdo, } initialized = true diff --git a/goextVersion.go b/goextVersion.go index 2db1c9e..7fc7da9 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.233" +const GoextVersion = "0.0.234" -const GoextVersionTimestamp = "2023-08-09T10:37:59+0200" +const GoextVersionTimestamp = "2023-08-09T10:39:14+0200"