summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLDebugTool.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLDebugTool.m')
-rw-r--r--SmartDeviceLink/SDLDebugTool.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLDebugTool.m b/SmartDeviceLink/SDLDebugTool.m
index 8bf8c7bda..c07f206c1 100644
--- a/SmartDeviceLink/SDLDebugTool.m
+++ b/SmartDeviceLink/SDLDebugTool.m
@@ -185,6 +185,10 @@
}
- (void)sdl_enableDebugToLogFile {
+ if (self.debugToLogFile) {
+ return;
+ }
+
[SDLDebugTool logInfo:@"Enabling Log File" withType:SDLDebugType_Debug];
self.debugToLogFile = YES;