Skip to content

Commit

Permalink
Stop spamming the logs
Browse files Browse the repository at this point in the history
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 facebook#5766

Reviewed By: svcscm

Differential Revision: D2902987

Pulled By: androidtrunkagent

fb-gh-sync-id: d47f8e58edf5f2c8e2a7a4373fd7d9036d2309a0
  • Loading branch information
vjeux authored and facebook-github-bot-5 committed Feb 4, 2016
1 parent e1f04bf commit 5873848
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions React/Profiler/RCTJSCProfiler.m
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
});
}
Expand Down

0 comments on commit 5873848

Please sign in to comment.