🤝 Merge pull request #76 from Instabug/hotfix/fix_ios_crash

🐛 Fix a crash for iOS that results in Bad Access
This commit is contained in:
salmatarzi 2017-09-20 12:58:01 +02:00 committed by GitHub
commit 61a8f77224

View File

@ -453,6 +453,7 @@ RCTLogFunction InstabugReactLogFunction = ^(
NSString *log = RCTFormatLog([NSDate date], level, fileName, lineNumber, message);
NSString *compeleteLog = [NSString stringWithFormat:@"Instabug - REACT LOG: %@", log];
dispatch_async(dispatch_get_main_queue(), ^{
va_list arg_list;
switch(level) {
@ -472,6 +473,7 @@ RCTLogFunction InstabugReactLogFunction = ^(
IBGNSLogWithLevel(compeleteLog, arg_list, IBGLogLevelFatal);
break;
}
});
};
@end