diff options
| author | Joel Fischer <joeljfischer@gmail.com> | 2017-03-03 16:07:21 -0500 |
|---|---|---|
| committer | Joel Fischer <joeljfischer@gmail.com> | 2017-03-03 16:07:21 -0500 |
| commit | f450f80862f3a3d5490cd9fc8e93d6e69807ebd0 (patch) | |
| tree | c693171b7013b2c1bff0b282251b662ba46c983e /SmartDeviceLink_Example | |
| parent | 7d9784439c7e6ad769dbd6fbe65e8020398c1df4 (diff) | |
| download | sdl_ios-f450f80862f3a3d5490cd9fc8e93d6e69807ebd0.tar.gz | |
In progress SDLDebugTool log replacements
Diffstat (limited to 'SmartDeviceLink_Example')
| -rw-r--r-- | SmartDeviceLink_Example/Classes/AppDelegate.m | 2 | ||||
| -rw-r--r-- | SmartDeviceLink_Example/Classes/ProxyManager.m | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/SmartDeviceLink_Example/Classes/AppDelegate.m b/SmartDeviceLink_Example/Classes/AppDelegate.m index b9d25a3c6..1ceb6f765 100644 --- a/SmartDeviceLink_Example/Classes/AppDelegate.m +++ b/SmartDeviceLink_Example/Classes/AppDelegate.m @@ -18,8 +18,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - SDLLogE(@"Test log"); - return YES; } diff --git a/SmartDeviceLink_Example/Classes/ProxyManager.m b/SmartDeviceLink_Example/Classes/ProxyManager.m index c544995d6..a6528e7dc 100644 --- a/SmartDeviceLink_Example/Classes/ProxyManager.m +++ b/SmartDeviceLink_Example/Classes/ProxyManager.m @@ -75,9 +75,9 @@ NS_ASSUME_NONNULL_BEGIN // Assume this is production and disable logging lifecycleConfig.logFlags = SDLLogOutputNone; - SDLConfiguration *config = [SDLConfiguration configurationWithLifecycle:lifecycleConfig lockScreen:[SDLLockScreenConfiguration enabledConfiguration] logging:[SDLLogConfiguration debugConfiguration]]; + SDLConfiguration *config = [SDLConfiguration configurationWithLifecycle:lifecycleConfig lockScreen:[SDLLockScreenConfiguration enabledConfiguration] logging:[SDLLogConfiguration defaultConfiguration]]; self.sdlManager = [[SDLManager alloc] initWithConfiguration:config delegate:self]; - + [self startManager]; } @@ -86,7 +86,7 @@ NS_ASSUME_NONNULL_BEGIN SDLLifecycleConfiguration *lifecycleConfig = [self.class setLifecycleConfigurationPropertiesOnConfiguration:[SDLLifecycleConfiguration debugConfigurationWithAppName:SDLAppName appId:SDLAppId ipAddress:[Preferences sharedPreferences].ipAddress port:[Preferences sharedPreferences].port]]; SDLConfiguration *config = [SDLConfiguration configurationWithLifecycle:lifecycleConfig lockScreen:[SDLLockScreenConfiguration enabledConfiguration] logging:[SDLLogConfiguration debugConfiguration]]; self.sdlManager = [[SDLManager alloc] initWithConfiguration:config delegate:self]; - + [self startManager]; } @@ -94,7 +94,7 @@ NS_ASSUME_NONNULL_BEGIN __weak typeof (self) weakSelf = self; [self.sdlManager startWithReadyHandler:^(BOOL success, NSError * _Nullable error) { if (!success) { - NSLog(@"SDL errored starting up: %@", error); + SDLLogE(@"SDL errored starting up: %@", error); [weakSelf sdlex_updateProxyState:ProxyStateStopped]; return; } |
