fix: Remove config logging when launching Parse Server via CLI (#8710)
This commit is contained in:
@@ -1,13 +1,20 @@
|
|||||||
import program from './commander';
|
import program from './commander';
|
||||||
|
|
||||||
function logStartupOptions(options) {
|
function logStartupOptions(options) {
|
||||||
|
if (!options.verbose) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// Keys that may include sensitive information that will be redacted in logs
|
||||||
|
const keysToRedact = [
|
||||||
|
'databaseURI',
|
||||||
|
'masterKey',
|
||||||
|
'maintenanceKey',
|
||||||
|
'push',
|
||||||
|
];
|
||||||
for (const key in options) {
|
for (const key in options) {
|
||||||
let value = options[key];
|
let value = options[key];
|
||||||
if (key == 'masterKey') {
|
if (keysToRedact.includes(key)) {
|
||||||
value = '***REDACTED***';
|
value = '<REDACTED>';
|
||||||
}
|
|
||||||
if (key == 'push' && options.verbose != true) {
|
|
||||||
value = '***REDACTED***';
|
|
||||||
}
|
}
|
||||||
if (typeof value === 'object') {
|
if (typeof value === 'object') {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user