diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2016-01-27 10:46:50 -0500 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2016-01-27 10:46:50 -0500 |
commit | dd898123b13402569d75fd3625edd84104ce1eae (patch) | |
tree | e1cac5945f86e96907137e4c0888f64835332e2d | |
parent | c31b7a9f08bf9bbe9e34c141410ebf1f3220b3a3 (diff) | |
download | sdl_ios-dd898123b13402569d75fd3625edd84104ce1eae.tar.gz |
Fix showing a console error
* Don't try to log to a file until after the file logging is set up
-rw-r--r-- | SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.m index 0b23fed07..b2222a7ca 100644 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.m +++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLDebugTool.m @@ -160,9 +160,9 @@ } - (void)sdl_enableDebugToLogFile { - self.debugToLogFile = YES; + [SDLDebugTool logInfo:@"Enabling Log File" withType:SDLDebugType_Debug]; - [SDLDebugTool logInfo:@"Log File Enabled" withType:SDLDebugType_Debug]; + self.debugToLogFile = YES; //Delete Log File If It Exists NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); |