We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a198f4 commit cb2a357Copy full SHA for cb2a357
src/cli/utils/runner.js
@@ -1,13 +1,20 @@
1
import program from './commander';
2
3
function logStartupOptions(options) {
4
+ if (!options.verbose) {
5
+ return;
6
+ }
7
+ // Keys that may include sensitive information that will be redacted in logs
8
+ const keysToRedact = [
9
+ 'databaseURI',
10
+ 'masterKey',
11
+ 'maintenanceKey',
12
+ 'push',
13
+ ];
14
for (const key in options) {
15
let value = options[key];
- if (key == 'masterKey') {
- value = '***REDACTED***';
- }
- if (key == 'push' && options.verbose != true) {
16
+ if (keysToRedact.includes(key)) {
17
+ value = '<REDACTED>';
18
}
19
if (typeof value === 'object') {
20
try {
0 commit comments