From 0694a2991c8f518b4df9ee2b7990210d5830c6ac Mon Sep 17 00:00:00 2001 From: Alexander Blom Date: Tue, 17 May 2016 12:42:17 -0700 Subject: [PATCH] Use infoLog instead of console.log Reviewed By: sahrens Differential Revision: D3304886 fbshipit-source-id: 79d3fd2b833380a18dfbee666f9bd5eaf25b0744 --- Libraries/AppRegistry/AppRegistry.js | 3 ++- Libraries/BugReporting/BugReporting.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Libraries/AppRegistry/AppRegistry.js b/Libraries/AppRegistry/AppRegistry.js index b76afb37918..a5fa0e3056e 100644 --- a/Libraries/AppRegistry/AppRegistry.js +++ b/Libraries/AppRegistry/AppRegistry.js @@ -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 @@ -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')()); diff --git a/Libraries/BugReporting/BugReporting.js b/Libraries/BugReporting/BugReporting.js index ceeb0df5886..e86eeacdcbe 100644 --- a/Libraries/BugReporting/BugReporting.js +++ b/Libraries/BugReporting/BugReporting.js @@ -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'; @@ -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);