File tree 2 files changed +13
-13
lines changed
2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -433,10 +433,7 @@ export const parse = (
433
433
throw new Error ( "--cert-key is missing" )
434
434
}
435
435
436
- logger . debug ( ( ) => [
437
- `parsed ${ opts ?. configFile ? "config" : "command line" } ` ,
438
- field ( "args" , redactArgs ( args ) ) ,
439
- ] )
436
+ logger . debug ( ( ) => [ `parsed ${ opts ?. configFile ? "config" : "command line" } ` , field ( "args" , redactArgs ( args ) ) ] )
440
437
441
438
return args
442
439
}
@@ -446,11 +443,11 @@ export const parse = (
446
443
*/
447
444
export const redactArgs = ( args : UserProvidedArgs ) : UserProvidedArgs => {
448
445
return {
449
- ...args ,
450
- password : args . password ? "<redacted>" : undefined ,
451
- "hashed-password" : args [ "hashed-password" ] ? "<redacted>" : undefined ,
452
- "github-auth" : args [ "github-auth" ] ? "<redacted>" : undefined ,
453
- }
446
+ ...args ,
447
+ password : args . password ? "<redacted>" : undefined ,
448
+ "hashed-password" : args [ "hashed-password" ] ? "<redacted>" : undefined ,
449
+ "github-auth" : args [ "github-auth" ] ? "<redacted>" : undefined ,
450
+ }
454
451
}
455
452
456
453
/**
Original file line number Diff line number Diff line change @@ -182,10 +182,13 @@ export class ChildProcess extends Process {
182
182
} ,
183
183
this . logger ,
184
184
)
185
- this . logger . debug ( "got message" , field ( "message" , {
186
- type : message . type ,
187
- args : redactArgs ( message . args ) ,
188
- } ) )
185
+ this . logger . debug (
186
+ "got message" ,
187
+ field ( "message" , {
188
+ type : message . type ,
189
+ args : redactArgs ( message . args ) ,
190
+ } ) ,
191
+ )
189
192
return message . args
190
193
}
191
194
You can’t perform that action at this time.
0 commit comments