From 086e216b5d92b6b3aca24da251097dce12f6cc4b Mon Sep 17 00:00:00 2001 From: Roy Razon Date: Wed, 14 Feb 2024 10:51:03 +0200 Subject: [PATCH] fix: CLI use a single logger --- packages/cli-common/src/commands/base-command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli-common/src/commands/base-command.ts b/packages/cli-common/src/commands/base-command.ts index b55d4545..47841e36 100644 --- a/packages/cli-common/src/commands/base-command.ts +++ b/packages/cli-common/src/commands/base-command.ts @@ -119,8 +119,8 @@ abstract class BaseCommand extends Comm oclifSettings.debug = true } this.#rawArgs = raw - this.logger = commandLogger(this, this.jsonEnabled() ? 'stderr' : 'stdout') this.stdErrLogger = commandLogger(this, 'stderr') + this.logger = this.jsonEnabled() ? this.stdErrLogger : commandLogger(this, 'stdout') } protected logger!: Logger