aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

De-globalize `setIoMessageThreshold`

Open HBobertz opened this issue 1 year ago • 2 comments

Depends on #32816

Today the setIoMessageThreshold function maintains a global variable which is used to globally determine whether a log message should be emitted. This is a problem for the Programmatic Toolkit as globally maintained memory can potentially lead to unexpected behavior especially in multithreaded workloads.

setIoMessageThreshold logic needs to be moved into the IoHost class and specific to that IoHost instance

HBobertz avatar Jan 13 '25 20:01 HBobertz

Completed in https://github.com/aws/aws-cdk/pull/32993

mrgrain avatar Jan 30 '25 18:01 mrgrain

Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.

github-actions[bot] avatar Jan 30 '25 18:01 github-actions[bot]