enable stacktrace in the core.Engine by default (#17)

This commit is contained in:
Pavel 2020-10-30 13:05:42 +03:00 committed by GitHub
parent ac9e7e768e
commit 66b13fc30b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,6 +101,7 @@ func (e *Engine) Prepare() *Engine {
e.resetUtils(e.Config.GetAWSConfig(), e.Config.IsDebug(), 0) e.resetUtils(e.Config.GetAWSConfig(), e.Config.IsDebug(), 0)
e.SetLogger(NewLogger(e.Config.GetTransportInfo().GetCode(), e.Config.GetLogLevel(), e.LogFormatter)) e.SetLogger(NewLogger(e.Config.GetTransportInfo().GetCode(), e.Config.GetLogLevel(), e.LogFormatter))
e.Sentry.Localizer = &e.Localizer e.Sentry.Localizer = &e.Localizer
e.Sentry.Stacktrace = true
e.Utils.Logger = e.Logger() e.Utils.Logger = e.Logger()
e.Sentry.Logger = e.Logger() e.Sentry.Logger = e.Logger()
e.prepared = true e.prepared = true