From 315c740a80a27a5ef89744c934b8bf4da1e233fb Mon Sep 17 00:00:00 2001 From: Daniel Izdebski Date: Tue, 26 Dec 2023 02:40:28 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20chore(core):=20Print=20CLI?= =?UTF-8?q?=20debug=20info=20only=20with=20debug=20flag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/cli/cliEntrypoint.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/core/src/cli/cliEntrypoint.ts b/packages/core/src/cli/cliEntrypoint.ts index 0138343f8..ecd6ddf24 100644 --- a/packages/core/src/cli/cliEntrypoint.ts +++ b/packages/core/src/cli/cliEntrypoint.ts @@ -44,8 +44,10 @@ export const cliEntrypoint = async () => { process.env.HEADLESS = true } - console.log('[DEBUG] Running with the following options:') - console.log({ cacheDir: walletSetupDir, ...flags, headless: Boolean(process.env.HEADLESS) ?? false }, '\n') + if (flags.debug) { + console.log('[DEBUG] Running with the following options:') + console.log({ cacheDir: walletSetupDir, ...flags, headless: Boolean(process.env.HEADLESS) ?? false }, '\n') + } const compiledWalletSetupDirPath = await compileWalletSetupFunctions(walletSetupDir, flags.debug)