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
@@ -82,11 +82,6 @@
<CommandLineArguments> <CommandLineArguments>
</CommandLineArguments> </CommandLineArguments>
<EnvironmentVariables> <EnvironmentVariables>
<EnvironmentVariable
key = "RUST_BACKTRACE"
value = "full"
isEnabled = "NO">
</EnvironmentVariable>
<EnvironmentVariable <EnvironmentVariable
key = "HTTPS_PROXY" key = "HTTPS_PROXY"
value = "localhost:9090" value = "localhost:9090"
@@ -58,6 +58,8 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationCoordinatorDelegate,
@Consumable private var storedAppRoute: AppRoute? @Consumable private var storedAppRoute: AppRoute?
init() { init() {
Self.setupEnvironmentVariables()
let appSettings = AppSettings() let appSettings = AppSettings()
if appSettings.otlpTracingEnabled { if appSettings.otlpTracingEnabled {
@@ -230,6 +232,10 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationCoordinatorDelegate,
// MARK: - Private // MARK: - Private
private static func setupEnvironmentVariables() {
setenv("RUST_BACKTRACE", "1", 1)
}
private static func setupServiceLocator(navigationRootCoordinator: NavigationRootCoordinator, appSettings: AppSettings) { private static func setupServiceLocator(navigationRootCoordinator: NavigationRootCoordinator, appSettings: AppSettings) {
ServiceLocator.shared.register(userIndicatorController: UserIndicatorController(rootCoordinator: navigationRootCoordinator)) ServiceLocator.shared.register(userIndicatorController: UserIndicatorController(rootCoordinator: navigationRootCoordinator))
ServiceLocator.shared.register(appSettings: appSettings) ServiceLocator.shared.register(appSettings: appSettings)
-3
View File
@@ -19,9 +19,6 @@ schemes:
run: run:
config: Debug config: Debug
environmentVariables: environmentVariables:
- variable: RUST_BACKTRACE
value: full
isEnabled: false
- variable: HTTPS_PROXY - variable: HTTPS_PROXY
value: localhost:9090 value: localhost:9090
isEnabled: false isEnabled: false