Skip to content

Commit

Permalink
Redirect tons of firefox logs to /dev/null (#732)
Browse files Browse the repository at this point in the history
* Redirect tons of firefox spam logs to hell.
* Made firefox log file path as hidden property with default value.
  • Loading branch information
rosolko committed May 9, 2018
1 parent e1aaabc commit b6207b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -23,6 +23,8 @@ boolean supports() {

@Override
WebDriver create(final Proxy proxy) {
String logFilePath = System.getProperty(FirefoxDriver.SystemProperty.BROWSER_LOGFILE, "/dev/null");
System.setProperty(FirefoxDriver.SystemProperty.BROWSER_LOGFILE, logFilePath);
return createFirefoxDriver(proxy);
}

Expand Down
Expand Up @@ -19,6 +19,8 @@ boolean supports() {

@Override
WebDriver create(final Proxy proxy) {
String logFilePath = System.getProperty(FirefoxDriver.SystemProperty.BROWSER_LOGFILE, "/dev/null");
System.setProperty(FirefoxDriver.SystemProperty.BROWSER_LOGFILE, logFilePath);
return createLegacyFirefoxDriver(proxy);
}

Expand Down

0 comments on commit b6207b4

Please sign in to comment.