Repository navigation
[java] Added a check for intentionally existing loggers - #14754
Conversation
A check for the handlers property of the LogManager is added as to ensure that intentionally existing loggers such as ones defined in the logging.properties file are not overwritten Fixes SeleniumHQ#14160
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
@JHeflinger Thank you for the PR! Before it can be evaluated, please sign the Contributor License Agreement. |
|
After looking at this PR, could you please add a test to ensure this functionality works as expected. |
diemol
left a comment
There was a problem hiding this comment.
Thank you, @JHeflinger!
I don't think we need a test for this because the number of people using this is very low. If we get bug reports around this, then I would consider adding a test for this.
|
Famous last words hehe. |
…4754) Added a check for intentionally existing loggers A check for the handlers property of the LogManager is added as to ensure that intentionally existing loggers such as ones defined in the logging.properties file are not overwritten Fixes SeleniumHQ#14160 Co-authored-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com> Co-authored-by: Puja Jagani <puja.jagani93@gmail.com> Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
User description
Description
A check for the existence of the handlers property in the LogManager is added in the configureLogging() function as to ensure that intentionally existing loggers such as ones defined in the logging.properties file are not overwritten
Motivation and Context
This is to allow users to use their own loggers and formatting with the grid program.
Types of changes
Checklist
Fixes #14160
PR Type
Bug fix
Description
configureLoggingmethod to ensure that existing loggers, such as those defined in thelogging.propertiesfile, are not overwritten.Changes walkthrough 📝
LoggingOptions.java
Add check to preserve existing loggers in LoggingOptionsjava/src/org/openqa/selenium/grid/log/LoggingOptions.java
configureLogging.logging.properties.