|
59 | 59 | import org.openqa.selenium.grid.node.SessionFactory; |
60 | 60 | import org.openqa.selenium.internal.Require; |
61 | 61 | import org.openqa.selenium.json.Json; |
62 | | -import org.openqa.selenium.json.JsonInput; |
63 | 62 | import org.openqa.selenium.json.JsonOutput; |
64 | 63 | import org.openqa.selenium.net.NetworkUtils; |
65 | 64 | import org.openqa.selenium.net.Urls; |
@@ -569,18 +568,15 @@ private Map<WebDriverInfo, Collection<SessionFactory>> discoverDrivers( |
569 | 568 | .sorted(Comparator.comparing(info -> info.getDisplayName().toLowerCase())) |
570 | 569 | .collect(Collectors.toList()); |
571 | 570 |
|
572 | | - LOG.log(Level.INFO, "Driver(s) already present on the host: {0}", infos.size()); |
573 | | - |
574 | 571 | if (config.getBool(NODE_SECTION, "selenium-manager").orElse(DEFAULT_USE_SELENIUM_MANAGER)) { |
575 | 572 | List<String> present = |
576 | 573 | infos.stream().map(WebDriverInfo::getDisplayName).collect(Collectors.toList()); |
577 | 574 | List<WebDriverInfo> driversSM = |
578 | 575 | StreamSupport.stream(ServiceLoader.load(WebDriverInfo.class).spliterator(), false) |
579 | | - .filter(WebDriverInfo::isAvailable) |
580 | 576 | .filter(info -> !present.contains(info.getDisplayName())) |
| 577 | + .filter(WebDriverInfo::isAvailable) |
581 | 578 | .sorted(Comparator.comparing(info -> info.getDisplayName().toLowerCase())) |
582 | 579 | .collect(Collectors.toList()); |
583 | | - LOG.log(Level.INFO, "Driver(s) available through Selenium Manager: {0}", driversSM.size()); |
584 | 580 | infos.addAll(driversSM); |
585 | 581 | } |
586 | 582 |
|
@@ -715,11 +711,10 @@ private void report(Map.Entry<WebDriverInfo, Collection<SessionFactory>> entry) |
715 | 711 |
|
716 | 712 | LOG.info( |
717 | 713 | String.format( |
718 | | - "Adding %s for %s %d times (%s)", |
| 714 | + "Adding %s for %s %d times", |
719 | 715 | entry.getKey().getDisplayName(), |
720 | 716 | caps.toString().replaceAll("\\s+", " "), |
721 | | - entry.getValue().size(), |
722 | | - entry.getKey().isPresent() ? "Host" : "SM")); |
| 717 | + entry.getValue().size())); |
723 | 718 | } |
724 | 719 |
|
725 | 720 | private String unquote(String input) { |
|
0 commit comments