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

Fix #393 Setting enabled logging levels for all threads change the default for all threads #405

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

karstenspang
Copy link

This closes #393 Setting enabled logging levels for all threads change the default for all threads

Changing TestLogger.setEnabledLevelsForAllThreads as I originally intended turned out to be logically impossible, so I restricted the changes to make TestLogger.clear and TestLogger.clearAll to behave like their Javadoc says, even after setEnabledLevelsForAllThreads has been called.
I also updated the Javadoc for setEnabledLevelsForAllThreads, removing the note that calling these methods makes clear and clearAll not behave as expected.

I added two new test cases that fail for the unchanged code.

@codeclimate
Copy link

codeclimate bot commented Jun 14, 2023

Code Climate has analyzed commit 53344d4 and detected 0 issues on this pull request.

View more on Code Climate.

@valfirst valfirst merged commit 80c94b4 into valfirst:master Jun 14, 2023
@valfirst valfirst added this to the 3.0.0 milestone Jun 14, 2023
@valfirst
Copy link
Owner

@karstenspang thank you!

@karstenspang karstenspang deleted the 393-enable-levels-for-all branch June 15, 2023 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting enabled logging levels for all threads change the default for all threads
2 participants