diff --git a/exerr/errinit.go b/exerr/errinit.go index e7759a7..a67a022 100644 --- a/exerr/errinit.go +++ b/exerr/errinit.go @@ -16,11 +16,11 @@ type ErrorPackageConfig struct { } type ErrorPackageConfigInit struct { - ZeroLogErrTraces bool - ZeroLogAllTraces bool - RecursiveErrors bool - ExtendedGinOutput bool - IncludeMetaInGinOutput bool + 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) } @@ -56,11 +56,11 @@ func Init(cfg ErrorPackageConfigInit) { } pkgconfig = ErrorPackageConfig{ - ZeroLogErrTraces: cfg.ZeroLogErrTraces, - ZeroLogAllTraces: cfg.ZeroLogAllTraces, - RecursiveErrors: cfg.RecursiveErrors, - ExtendedGinOutput: cfg.ExtendedGinOutput, - IncludeMetaInGinOutput: cfg.IncludeMetaInGinOutput, + ZeroLogErrTraces: langext.Coalesce(cfg.ZeroLogErrTraces, pkgconfig.ZeroLogErrTraces), + ZeroLogAllTraces: langext.Coalesce(cfg.ZeroLogAllTraces, pkgconfig.ZeroLogAllTraces), + RecursiveErrors: langext.Coalesce(cfg.RecursiveErrors, pkgconfig.RecursiveErrors), + ExtendedGinOutput: langext.Coalesce(cfg.ExtendedGinOutput, pkgconfig.ExtendedGinOutput), + IncludeMetaInGinOutput: langext.Coalesce(cfg.IncludeMetaInGinOutput, pkgconfig.IncludeMetaInGinOutput), ExtendGinOutput: ego, ExtendGinDataOutput: egdo, } diff --git a/goextVersion.go b/goextVersion.go index 1b45837..011d84c 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.244" +const GoextVersion = "0.0.245" -const GoextVersionTimestamp = "2023-08-18T13:27:02+0200" +const GoextVersionTimestamp = "2023-08-21T13:27:36+0200"