Skip to content

Commit

Permalink
fix(logging): avoid logging sensitive param values
Browse files Browse the repository at this point in the history
  • Loading branch information
Wes Johnson committed May 13, 2021
1 parent ca499a6 commit d8407be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Libraries/ReactNative/AppRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,10 @@ const AppRegistry = {
displayMode?: number,
): void {
if (appKey !== 'LogBox') {
const msg =
'Running "' + appKey + '" with ' + JSON.stringify(appParameters);
const logParams = __DEV__
? '" with ' + JSON.stringify(appParameters)
: '';
const msg = 'Running "' + appKey + logParams;
infoLog(msg);
BugReporting.addSource(
'AppRegistry.runApplication' + runCount++,
Expand Down

0 comments on commit d8407be

Please sign in to comment.