File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -433,10 +433,7 @@ export const parse = (
433433 throw new Error ( "--cert-key is missing" )
434434 }
435435
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 ) ) ] )
440437
441438 return args
442439}
@@ -446,11 +443,11 @@ export const parse = (
446443 */
447444export const redactArgs = ( args : UserProvidedArgs ) : UserProvidedArgs => {
448445 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+ }
454451}
455452
456453/**
Original file line number Diff line number Diff line change @@ -182,10 +182,13 @@ export class ChildProcess extends Process {
182182 } ,
183183 this . logger ,
184184 )
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+ )
189192 return message . args
190193 }
191194
You can’t perform that action at this time.
0 commit comments