Skip to content

Commit

Permalink
Include whether dev or production is enabled in "Running app on" message
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvatne committed Jul 28, 2017
1 parent 549dbe8 commit 6559600
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion react-native-scripts/src/util/packager.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ function run(onReady: () => ?any, options: Object = {}, isInteractive = false) {
// this is set when we previously encountered an error
// TODO clearConsole();
}
log.withTimestamp(`Running app on ${chunk.deviceName}\n`);
let devEnabled = chunk.msg.includes('__DEV__ === true');
log.withTimestamp(
`Running app on ${chunk.deviceName} in ${devEnabled ? 'development' : 'production'} mode\n`
);
return;
}

Expand Down

0 comments on commit 6559600

Please sign in to comment.