[ReactNative] Don't log invalid utf8 strings
This commit is contained in:
parent
96850b7429
commit
483077d4da
|
@ -35,8 +35,7 @@ id RCTJSONParse(NSString *jsonString, NSError **error)
|
||||||
if (jsonData) {
|
if (jsonData) {
|
||||||
RCTLogWarn(@"RCTJSONParse received the following string, which could not be losslessly converted to UTF8 data: '%@'", jsonString);
|
RCTLogWarn(@"RCTJSONParse received the following string, which could not be losslessly converted to UTF8 data: '%@'", jsonString);
|
||||||
} else {
|
} else {
|
||||||
// If our backup conversion fails, log the issue so we can see what strings are causing this (t6452813)
|
RCTLogError(@"RCTJSONParse received invalid UTF8 data");
|
||||||
RCTLogError(@"RCTJSONParse received the following string, which could not be converted to UTF8 data: '%@'", jsonString);
|
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue