diff --git a/src/node/cli.ts b/src/node/cli.ts index eab083ab5..87807ec77 100644 --- a/src/node/cli.ts +++ b/src/node/cli.ts @@ -433,10 +433,7 @@ export const parse = ( throw new Error("--cert-key is missing") } - logger.debug(() => [ - `parsed ${opts?.configFile ? "config" : "command line"}`, - field("args", redactArgs(args)), - ]) + logger.debug(() => [`parsed ${opts?.configFile ? "config" : "command line"}`, field("args", redactArgs(args))]) return args } @@ -446,11 +443,11 @@ export const parse = ( */ export const redactArgs = (args: UserProvidedArgs): UserProvidedArgs => { return { - ...args, - password: args.password ? "" : undefined, - "hashed-password": args["hashed-password"] ? "" : undefined, - "github-auth": args["github-auth"] ? "" : undefined, - } + ...args, + password: args.password ? "" : undefined, + "hashed-password": args["hashed-password"] ? "" : undefined, + "github-auth": args["github-auth"] ? "" : undefined, + } } /** diff --git a/src/node/wrapper.ts b/src/node/wrapper.ts index 4b8a61be7..ab8f70c16 100644 --- a/src/node/wrapper.ts +++ b/src/node/wrapper.ts @@ -182,10 +182,13 @@ export class ChildProcess extends Process { }, this.logger, ) - this.logger.debug("got message", field("message", { - type: message.type, - args: redactArgs(message.args), - })) + this.logger.debug( + "got message", + field("message", { + type: message.type, + args: redactArgs(message.args), + }), + ) return message.args }