Hides token contents in logStartupOptions if they arrive as a buffer (#5322)
* Hides token contents in logStartupOptions if they arrive as a buffer * Hides all push details in logStartupOptions unless we're in verbose mode
This commit is contained in:
committed by
Florent Vilmart
parent
1cbe8bd394
commit
6a93806c62
@@ -6,6 +6,9 @@ function logStartupOptions(options) {
|
|||||||
if (key == 'masterKey') {
|
if (key == 'masterKey') {
|
||||||
value = '***REDACTED***';
|
value = '***REDACTED***';
|
||||||
}
|
}
|
||||||
|
if (key == 'push' && process.env.VERBOSE != true) {
|
||||||
|
value = '***REDACTED***';
|
||||||
|
}
|
||||||
if (typeof value === 'object') {
|
if (typeof value === 'object') {
|
||||||
try {
|
try {
|
||||||
value = JSON.stringify(value);
|
value = JSON.stringify(value);
|
||||||
|
|||||||
Reference in New Issue
Block a user