summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2019-04-08 17:07:55 -0400
committerJoel Fischer <joeljfischer@gmail.com>2019-04-08 17:07:55 -0400
commite5aeb899eca46aeb9435acda0040c2f0bc0867ea (patch)
tree602cb322e6322745a3b141ae920ebb9eb221f648
parent8a53be9f1b2d910577d4ed9e315cb79980012d8f (diff)
downloadsdl_ios-bugfix/issue_1230_disable_bad_data_assert.tar.gz
-rw-r--r--SmartDeviceLink/SDLLogManager.m5
1 files changed, 1 insertions, 4 deletions
diff --git a/SmartDeviceLink/SDLLogManager.m b/SmartDeviceLink/SDLLogManager.m
index dc8bc98ce..22918ed9c 100644
--- a/SmartDeviceLink/SDLLogManager.m
+++ b/SmartDeviceLink/SDLLogManager.m
@@ -140,10 +140,7 @@ static dispatch_queue_t _logQueue = NULL;
[self logWithLevel:SDLLogLevelError timestamp:timestamp file:file functionName:functionName line:line queue:queueLabel message:format];
- if (!self.areAssertionsDisabled) {
- NSString *assertString = [NSString stringWithFormat:@"SDL ASSERTION: %@. To disable these assertions, alter your `SDLLogConfiguration` and set `disableAssertions` to `YES`", format];
- NSAssert(NO, assertString);
- }
+ NSAssert(self.areAssertionsDisabled, @"SDL ASSERTION: %@. To disable these assertions, alter your `SDLLogConfiguration` and set `disableAssertions` to `YES`", format);
}
- (void)logWithLevel:(SDLLogLevel)level timestamp:(NSDate *)timestamp file:(NSString *)file functionName:(NSString *)functionName line:(NSInteger)line queue:(NSString *)queueLabel formatMessage:(NSString *)message, ... {