Enable RUST_BACKTRACE by default

This commit is contained in:
Stefan Ceriu
2023-09-08 14:34:59 +03:00
committed by Stefan Ceriu
parent 1eac02f7b0
commit dedfb9394f
3 changed files with 7 additions and 9 deletions
@@ -58,6 +58,8 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationCoordinatorDelegate,
@Consumable private var storedAppRoute: AppRoute?
init() {
Self.setupEnvironmentVariables()
let appSettings = AppSettings()
if appSettings.otlpTracingEnabled {
@@ -77,7 +79,7 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationCoordinatorDelegate,
navigationRootCoordinator = NavigationRootCoordinator()
Self.setupServiceLocator(navigationRootCoordinator: navigationRootCoordinator, appSettings: appSettings)
ServiceLocator.shared.analytics.startIfEnabled()
stateMachine = AppCoordinatorStateMachine()
@@ -230,6 +232,10 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationCoordinatorDelegate,
// MARK: - Private
private static func setupEnvironmentVariables() {
setenv("RUST_BACKTRACE", "1", 1)
}
private static func setupServiceLocator(navigationRootCoordinator: NavigationRootCoordinator, appSettings: AppSettings) {
ServiceLocator.shared.register(userIndicatorController: UserIndicatorController(rootCoordinator: navigationRootCoordinator))
ServiceLocator.shared.register(appSettings: appSettings)
-3
View File
@@ -19,9 +19,6 @@ schemes:
run:
config: Debug
environmentVariables:
- variable: RUST_BACKTRACE
value: full
isEnabled: false
- variable: HTTPS_PROXY
value: localhost:9090
isEnabled: false