aws-cdk
aws-cdk copied to clipboard
De-globalize `setIoMessageThreshold`
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
Completed in https://github.com/aws/aws-cdk/pull/32993
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.