Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

De-globalize setIoMessageThreshold #32897

Closed
HBobertz opened this issue Jan 13, 2025 · 2 comments
Closed

De-globalize setIoMessageThreshold #32897

HBobertz opened this issue Jan 13, 2025 · 2 comments
Labels
@aws-cdk/core Related to core CDK functionality effort/medium Medium work item – several days of effort p2

Comments

@HBobertz
Copy link
Contributor

HBobertz commented Jan 13, 2025

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 HBobertz changed the title DeGlobalize setIoMessageThreshold and pass it with IoHost De-globalize setIoMessageThreshold and pass it with IoHost Jan 13, 2025
@HBobertz HBobertz changed the title De-globalize setIoMessageThreshold and pass it with IoHost De-globalize setIoMessageThreshold Jan 13, 2025
@khushail khushail added p2 effort/medium Medium work item – several days of effort @aws-cdk/core Related to core CDK functionality labels Jan 13, 2025
@mrgrain
Copy link
Contributor

mrgrain commented Jan 30, 2025

Completed in #32993

@mrgrain mrgrain closed this as completed Jan 30, 2025
Copy link

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 github-actions bot locked as resolved and limited conversation to collaborators Jan 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
@aws-cdk/core Related to core CDK functionality effort/medium Medium work item – several days of effort p2
Projects
None yet
Development

No branches or pull requests

3 participants