summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuller, Alexander (A.) <amulle19@ford.com>2017-01-26 14:24:37 -0800
committerMuller, Alexander (A.) <amulle19@ford.com>2017-01-26 14:24:37 -0800
commit632cf0b5a03fcbb1ded545edeacf537b82ef0054 (patch)
tree68926e51b59436affb32d102c60b84377103f5b1
parentb7428844601fe8ab8ea2cd209279f641a92ccfdd (diff)
downloadsdl_ios-632cf0b5a03fcbb1ded545edeacf537b82ef0054.tar.gz
Moved point at which we set the logging to be before we initialize anything within the lifecycle manager.hotfix/issue_512_debug_tool
-rw-r--r--SmartDeviceLink/SDLLifecycleManager.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/SmartDeviceLink/SDLLifecycleManager.m b/SmartDeviceLink/SDLLifecycleManager.m
index cce5e89e8..a9d5a86a1 100644
--- a/SmartDeviceLink/SDLLifecycleManager.m
+++ b/SmartDeviceLink/SDLLifecycleManager.m
@@ -87,6 +87,9 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready";
_configuration = configuration;
_delegate = delegate;
+ // Logging
+ [self.class sdl_updateLoggingWithFlags:self.configuration.lifecycleConfig.logFlags];
+
// Private properties
_lifecycleStateMachine = [[SDLStateMachine alloc] initWithTarget:self initialState:SDLLifecycleStateStopped states:[self.class sdl_stateTransitionDictionary]];
_lastCorrelationId = 0;
@@ -99,9 +102,6 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready";
_permissionManager = [[SDLPermissionManager alloc] init];
_lockScreenManager = [[SDLLockScreenManager alloc] initWithConfiguration:_configuration.lockScreenConfig notificationDispatcher:_notificationDispatcher presenter:[[SDLLockScreenPresenter alloc] init]];
- // Logging
- [self.class sdl_updateLoggingWithFlags:self.configuration.lifecycleConfig.logFlags];
-
// Notifications
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(transportDidConnect) name:SDLTransportDidConnect object:_notificationDispatcher];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(transportDidDisconnect) name:SDLTransportDidDisconnect object:_notificationDispatcher];