File tree 1 file changed +6
-1
lines changed
java/src/org/openqa/selenium/chrome
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ public class ChromeDriverService extends DriverService {
50
50
*/
51
51
public static final String CHROME_DRIVER_LOG_PROPERTY = "webdriver.chrome.logfile" ;
52
52
53
+ /**
54
+ * System property that defines the log level when ChromeDriver output is logged.
55
+ */
56
+ public static final String CHROME_DRIVER_LOG_LEVEL_PROPERTY = "webdriver.chrome.loglevel" ;
57
+
53
58
/**
54
59
* Boolean system property that defines whether chromedriver should append to existing log file.
55
60
*/
@@ -154,7 +159,7 @@ public static class Builder extends DriverService.Builder<
154
159
private boolean verbose = Boolean .getBoolean (CHROME_DRIVER_VERBOSE_LOG_PROPERTY );
155
160
private boolean silent = Boolean .getBoolean (CHROME_DRIVER_SILENT_OUTPUT_PROPERTY );
156
161
private String whitelistedIps = System .getProperty (CHROME_DRIVER_WHITELISTED_IPS_PROPERTY );
157
- private ChromeDriverLogLevel logLevel = null ;
162
+ private ChromeDriverLogLevel logLevel = ChromeDriverLogLevel . fromString ( System . getProperty ( CHROME_DRIVER_LOG_LEVEL_PROPERTY )) ;
158
163
159
164
@ Override
160
165
public int score (Capabilities capabilities ) {
You can’t perform that action at this time.
0 commit comments