Skip to content

Commit

Permalink
Hides all push details in logStartupOptions unless we're in verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
drdaz committed Jan 27, 2019
1 parent aea1399 commit a223bfc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cli/utils/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ function logStartupOptions(options) {
if (key == 'masterKey') {
value = '***REDACTED***';
}
if (key == 'push') {
if (Buffer.isBuffer(value.ios.token.key)) {
value.ios.token.key = '***REDACTED***';
}
if (key == 'push' && process.env.VERBOSE != true) {

This comment has been minimized.

Copy link
@flovilmart

flovilmart Jan 27, 2019

Contributor

This won’t work, as it will fall into the next case as the value type will be ‘object’ :)

value = '***REDACTED***';
}
if (typeof value === 'object') {
try {
Expand Down

0 comments on commit a223bfc

Please sign in to comment.