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:
Darren Black
2019-01-27 19:59:15 +01:00
committed by Florent Vilmart
parent 1cbe8bd394
commit 6a93806c62

View File

@@ -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);