Skip to content

Commit

Permalink
Hides token contents in logStartupOptions if they arrive as a buffer (#…
Browse files Browse the repository at this point in the history
…5322)

* Hides token contents in logStartupOptions if they arrive as a buffer

* Hides all push details in logStartupOptions unless we're in verbose mode
  • Loading branch information
drdaz authored and flovilmart committed Jan 27, 2019
1 parent 1cbe8bd commit 6a93806
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cli/utils/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ function logStartupOptions(options) {
if (key == 'masterKey') {
value = '***REDACTED***';
}
if (key == 'push' && process.env.VERBOSE != true) {
value = '***REDACTED***';
}
if (typeof value === 'object') {
try {
value = JSON.stringify(value);
Expand Down

0 comments on commit 6a93806

Please sign in to comment.