Skip to content

Commit

Permalink
Use infoLog instead of console.log
Browse files Browse the repository at this point in the history
Reviewed By: sahrens

Differential Revision: D3304886

fbshipit-source-id: 79d3fd2b833380a18dfbee666f9bd5eaf25b0744
  • Loading branch information
lexs authored and Facebook Github Bot 1 committed May 17, 2016
1 parent 2a67f9b commit 0694a29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Libraries/AppRegistry/AppRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ var ReactNative = require('ReactNative');

var invariant = require('fbjs/lib/invariant');
var renderApplication = require('renderApplication');
const infoLog = require('infoLog');

if (__DEV__) {
// In order to use Cmd+P to record/dump perf data, we need to make sure
Expand Down Expand Up @@ -87,7 +88,7 @@ var AppRegistry = {
'__DEV__ === ' + String(__DEV__) +
', development-level warning are ' + (__DEV__ ? 'ON' : 'OFF') +
', performance optimizations are ' + (__DEV__ ? 'OFF' : 'ON');
console.log(msg);
infoLog(msg);
BugReporting.init();
BugReporting.addSource('AppRegistry.runApplication' + runCount++, () => msg);
BugReporting.addFileSource('react_hierarchy.txt', () => require('dumpReactTree')());
Expand Down
3 changes: 2 additions & 1 deletion Libraries/BugReporting/BugReporting.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
const BugReportingNativeModule = require('NativeModules').BugReporting;
const RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
const Map = require('Map');
const infoLog = require('infoLog');

import type EmitterSubscription from 'EmitterSubscription';

Expand Down Expand Up @@ -89,7 +90,7 @@ class BugReporting {
for (const [key, callback] of BugReporting._fileSources) {
fileData[key] = callback();
}
console.log('BugReporting extraData:', extraData);
infoLog('BugReporting extraData:', extraData);
BugReportingNativeModule &&
BugReportingNativeModule.setExtraData &&
BugReportingNativeModule.setExtraData(extraData, fileData);
Expand Down

0 comments on commit 0694a29

Please sign in to comment.