mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix minor formatting issue in AppRegistry logging in non-dev builds
Summary: ## Changelog: [Internal] - I was looking at the logs, troubleshooting a non-dev build issue, and noticed a line: ``` I0429 15:56:42.107558 1874554880: Running "MyApplication ``` In `__DEV__` mode this usually continues with `" with ...`, but in release mode the closing quote was missing, which made me think there may be something going on garbling the log messages. Which ultimately was a red herring, and it's just a bad formatting in the message in release mode, which this change fixes. Reviewed By: zeyap Differential Revision: D56704170 fbshipit-source-id: a28604fffec6be74733c8759f59ee52a67a81746
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8689f563ed
commit
ab00a453a8
@@ -196,10 +196,8 @@ const AppRegistry = {
|
||||
displayMode?: number,
|
||||
): void {
|
||||
if (appKey !== 'LogBox') {
|
||||
const logParams = __DEV__
|
||||
? '" with ' + JSON.stringify(appParameters)
|
||||
: '';
|
||||
const msg = 'Running "' + appKey + logParams;
|
||||
const logParams = __DEV__ ? ` with ${JSON.stringify(appParameters)}` : '';
|
||||
const msg = `Running "${appKey}"${logParams}`;
|
||||
infoLog(msg);
|
||||
BugReporting.addSource(
|
||||
'AppRegistry.runApplication' + runCount++,
|
||||
|
||||
Reference in New Issue
Block a user