Stop spamming the logs
Summary: We should have 0 logs at startup. In theory it could be useful to know if the profiler is enabled, but in practice 99% of the time you don't care and it ends up spamming you for no good reason. Then more people add logs and not only do the logs are not useful, they prevent people from actually using them when debugging. Closes https://github.com/facebook/react-native/pull/5766 Reviewed By: svcscm Differential Revision: D2902987 Pulled By: androidtrunkagent fb-gh-sync-id: d47f8e58edf5f2c8e2a7a4373fd7d9036d2309a0
This commit is contained in:
parent
e1f04bf2e3
commit
58738483ab
|
@ -56,11 +56,9 @@ static void RCTJSCProfilerStateInit()
|
|||
|
||||
if (RCTNativeProfilerStart && RCTNativeProfilerEnd && enableBytecode) {
|
||||
enableBytecode();
|
||||
RCTLogInfo(@"JSC profiler is available.");
|
||||
} else {
|
||||
RCTNativeProfilerStart = NULL;
|
||||
RCTNativeProfilerEnd = NULL;
|
||||
RCTLogInfo(@"JSC profiler is not supported.");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue