From 58738483abdee8091fdf94072f40fb65cc187990 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Thu, 4 Feb 2016 15:32:22 -0800 Subject: [PATCH] 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 --- React/Profiler/RCTJSCProfiler.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/React/Profiler/RCTJSCProfiler.m b/React/Profiler/RCTJSCProfiler.m index f808c1c5f..8ad34b626 100644 --- a/React/Profiler/RCTJSCProfiler.m +++ b/React/Profiler/RCTJSCProfiler.m @@ -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."); } }); }