Skip to content

Commit

Permalink
add fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HBobertz committed Dec 27, 2024
1 parent 60c2e48 commit dadef91
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/aws-cdk/lib/toolkit/cli-io-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ interface IoMessage {
/**
* code A short code uniquely identifying message type.
*/
readonly code: string;
readonly code: string;

/**
* message The message text.
*/
readonly message: string;

/**
* forceStdout If true, the message will be written to stdout
* regardless of any other parameters.
* forceStdout If true, the message will be written to stdout
* regardless of any other parameters.
*
* @default false
*/
Expand Down Expand Up @@ -97,11 +97,11 @@ export class CliIoHost {
* Determines which output stream to use based on log level and configuration.
*/
private getStream(level: IoMessageLevel, forceStdout: boolean) {
//For legacy purposes all log streams are written to stderr by default, unless
//specified otherwise, by passing `forceStdout`, which is used by the `data()` logging function, or
//if the CDK is running in a CI environment. This is because some CI environments will immediately
//fail if stderr is written to. In these cases, we detect if we are in a CI environment and
//write all messages to stdout instead.
//For legacy purposes all log streams are written to stderr by default, unless
//specified otherwise, by passing `forceStdout`, which is used by the `data()` logging function, or
//if the CDK is running in a CI environment. This is because some CI environments will immediately
//fail if stderr is written to. In these cases, we detect if we are in a CI environment and
//write all messages to stdout instead.
if (forceStdout) {
return process.stdout;
}
Expand Down

0 comments on commit dadef91

Please sign in to comment.