File tree 1 file changed +8
-2
lines changed
java/src/org/openqa/selenium/grid/log
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,14 @@ public void configureLogging() {
98
98
return ;
99
99
}
100
100
101
- // Keep current loggers if they are being manually set
102
- if (LogManager .getLogManager ().getProperty ("handlers" ) != null ) return ;
101
+ String configClass = System .getProperty ("java.util.logging.config.class" );
102
+ String configFile = System .getProperty ("java.util.logging.config.file" );
103
+
104
+ // Check if the java logging config class or file is set. If so, give that priority.
105
+ // Else default to the Selenium logging and respect the Selenium logging options.
106
+ if (configClass != null || configFile != null ) {
107
+ return ;
108
+ }
103
109
104
110
// Remove all handlers from existing loggers
105
111
LogManager logManager = LogManager .getLogManager ();
You can’t perform that action at this time.
0 commit comments