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

Catch more specific Exception in LoggingTool #876

Merged
merged 1 commit into from Aug 22, 2022

Conversation

uli-f
Copy link
Member

@uli-f uli-f commented Aug 22, 2022

Catching the more specific SecurityException instead of the general Exception to avoid just swallowing all exceptions that might occur.

Discussed with @egonw in #873, more specifically at the end of this comment.

…xception to avoid just swallowing all exceptions that might occur
@egonw egonw self-requested a review August 22, 2022 07:35
Copy link
Member

@egonw egonw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@uli-f
Copy link
Member Author

uli-f commented Aug 22, 2022

First contribution in a long time!

Happy to come up with more in the future 😃

@johnmay johnmay merged commit efa79b2 into cdk:master Aug 22, 2022
@johnmay
Copy link
Member

johnmay commented Aug 22, 2022

Something to note is you can now do this property switching logic in the Log4j XML config. Because of course you can :-). This logic was more just to make it easy to flip on/off verbose logging since no one got time to write an XML file just to turn debugging on.

@uli-f uli-f deleted the more_specific_exception_LoggingTool branch August 22, 2022 23:48
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.

None yet

3 participants