Setup the new RustSDK sentry integration
This commit is contained in:
committed by
Stefan Ceriu
parent
e84af69e00
commit
3dd98adeeb
@@ -72,7 +72,9 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg
|
||||
|
||||
let appSettings = appHooks.appSettingsHook.configure(AppSettings())
|
||||
|
||||
Target.mainApp.configure(logLevel: appSettings.logLevel, traceLogPacks: appSettings.traceLogPacks)
|
||||
Target.mainApp.configure(logLevel: appSettings.logLevel,
|
||||
traceLogPacks: appSettings.traceLogPacks,
|
||||
sentryURL: appSettings.bugReportSDKSentryURL)
|
||||
|
||||
let appName = InfoPlistReader.main.bundleDisplayName
|
||||
let appVersion = InfoPlistReader.main.bundleShortVersionString
|
||||
@@ -906,6 +908,8 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg
|
||||
|
||||
SentrySDK.start(options: options)
|
||||
|
||||
enableSentryLogging(enabled: appSettings.analyticsConsentState == .optedIn)
|
||||
|
||||
MXLog.info("SentrySDK started")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user