mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Fix set log block in template
Summary: public The log register function was updated, but the test example wasn't. Reviewed By: javache Differential Revision: D2658417 fb-gh-sync-id: 9ad27ec02eb437e0262e71897ff1a58a97e88b6d
This commit is contained in:
committed by
facebook-github-bot-2
parent
619da521f3
commit
136d79f4d6
@@ -42,7 +42,7 @@
|
||||
BOOL foundElement = NO;
|
||||
|
||||
__block NSString *redboxError = nil;
|
||||
RCTSetLogFunction(^(RCTLogLevel level, NSString *fileName, NSNumber *lineNumber, NSString *message) {
|
||||
RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
|
||||
if (level >= RCTLogLevelError) {
|
||||
redboxError = message;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user