fix: Remove config logging when launching Parse Server via CLI (#8710)

This commit is contained in:
Manuel
2023-08-18 02:11:24 +02:00
committed by GitHub
parent 7a198f4eed
commit ae68f0c31b

View File

@@ -1,13 +1,20 @@
import program from './commander';
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) {
let value = options[key];
if (key == 'masterKey') {
value = '***REDACTED***';
}
if (key == 'push' && options.verbose != true) {
value = '***REDACTED***';
if (keysToRedact.includes(key)) {
value = '<REDACTED>';
}
if (typeof value === 'object') {
try {