Skip to content

Commit

Permalink
fix: CLI use a single logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy Razon committed Feb 14, 2024
1 parent 78ba57f commit 086e216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli-common/src/commands/base-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ abstract class BaseCommand<T extends typeof Command=typeof Command> 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
Expand Down

0 comments on commit 086e216

Please sign in to comment.