Skip to content

Commit

Permalink
♻️ chore(core): Print CLI debug info only with debug flag
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Dec 26, 2023
1 parent a9121d6 commit 315c740
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core/src/cli/cliEntrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 315c740

Please sign in to comment.