From 8ae078b4d7c28653c77f79cb3d56ee5e82cda1e3 Mon Sep 17 00:00:00 2001 From: Cynthia Long Date: Wed, 18 Mar 2026 14:43:25 +0000 Subject: [PATCH] update comment --- packages/cli/src/ui/utils/ConsolePatcher.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/ui/utils/ConsolePatcher.ts b/packages/cli/src/ui/utils/ConsolePatcher.ts index 8f7132c3c2..1ba00cda13 100644 --- a/packages/cli/src/ui/utils/ConsolePatcher.ts +++ b/packages/cli/src/ui/utils/ConsolePatcher.ts @@ -50,14 +50,15 @@ export class ConsolePatcher { private patchConsoleMethod = (type: 'log' | 'warn' | 'error' | 'debug' | 'info') => (...args: unknown[]) => { - // When it is non interactive mode, do not show info logging. - // default to true if it is undefined + // When it is non interactive mode, do not show info logging unless + // it is debug mode. default to true if it is undefined. if (this.params.interactive === false) { if ((type === 'info' || type === 'log') && !this.params.debugMode) { return; } } // When it is stderr only mode, all console output redirect to stderr + // if it is debug mode. if (this.params.stderr) { if (type !== 'debug' || this.params.debugMode) { this.originalConsoleError(this.formatArgs(args));