-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[java] Added a check for intentionally existing loggers #14754
base: trunk
Are you sure you want to change the base?
[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. |
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
configureLogging
method to ensure that existing loggers, such as those defined in thelogging.properties
file, are not overwritten.Changes walkthrough 📝
LoggingOptions.java
Add check to preserve existing loggers in LoggingOptions
java/src/org/openqa/selenium/grid/log/LoggingOptions.java
configureLogging
.logging.properties
.