De-globalize setIoMessageThreshold
#32897
Labels
@aws-cdk/core
Related to core CDK functionality
effort/medium
Medium work item – several days of effort
p2
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 theIoHost
class and specific to that IoHost instanceThe text was updated successfully, but these errors were encountered: