🐛 Fix a crash for iOS that results in Bad Access

This commit is contained in:
Salma ElTarzi 2017-09-20 12:49:30 +02:00
parent 3354233e22
commit 7cc7e90a5a

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