Skip to content

Standard CDK log messages are written to the StandardError stream #7717

@DamirAinullin

Description

@DamirAinullin

Standard default CDK log messages are written to the StandardError stream. We can't disable these log messages.

Environment

  • **CLI Version :1.36.1
  • **Framework Version:1.36.1
  • **OS :Windows 10
  • **Language :Typescript

Other

These log messages lead to failure of AzureDevops Build:
image

I think that the problem is here:

export const print = logger(stderr);

In my opinion it is not good practice to write some non-error logs in stderr. And on top of all that we can't disable these default log messages.
--no-color option doesn't help. Setting options --trace --verbose as false does not disable default log messages.


This is 🐛 Bug Report

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.effort/largeLarge work item – several weeks of effortp1package/toolsRelated to AWS CDK Tools or CLI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions