Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

3 participants