mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-03 06:30:41 +00:00
🐛 Fix a crash for iOS that results in Bad Access
This commit is contained in:
parent
3354233e22
commit
7cc7e90a5a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user