|
39 | 39 | import java.util.logging.Level;
|
40 | 40 | import java.util.logging.Logger;
|
41 | 41 |
|
| 42 | +import static org.openqa.selenium.internal.Debug.getDebugLogLevel; |
42 | 43 | import static org.openqa.selenium.remote.http.HttpMethod.GET;
|
43 | 44 |
|
44 | 45 | public class ProxyNodeCdp implements BiFunction<String, Consumer<Message>, Optional<Consumer<Message>>> {
|
@@ -78,20 +79,23 @@ public Optional<Consumer<Message>> apply(String uri, Consumer<Message> downstrea
|
78 | 79 | Optional<URI> cdpUri = CdpEndpointFinder.getReportedUri("goog:chromeOptions", caps)
|
79 | 80 | .flatMap(reported -> CdpEndpointFinder.getCdpEndPoint(clientFactory, reported));
|
80 | 81 | if (cdpUri.isPresent()) {
|
81 |
| - LOG.fine("Chrome endpoint found"); |
| 82 | + LOG.log(getDebugLogLevel(), "Chrome endpoint found"); |
82 | 83 | return cdpUri.map(cdp -> createCdpEndPoint(cdp, downstream));
|
83 | 84 | }
|
84 | 85 |
|
85 | 86 | cdpUri = CdpEndpointFinder.getReportedUri("moz:debuggerAddress", caps)
|
86 | 87 | .flatMap(reported -> CdpEndpointFinder.getCdpEndPoint(clientFactory, reported));
|
87 | 88 | if (cdpUri.isPresent()) {
|
88 |
| - LOG.fine("Firefox endpoint found"); |
| 89 | + LOG.log(getDebugLogLevel(), "Firefox endpoint found"); |
89 | 90 | return cdpUri.map(cdp -> createCdpEndPoint(cdp, downstream));
|
90 | 91 | }
|
91 | 92 |
|
92 | 93 | LOG.fine("Searching for edge options");
|
93 | 94 | cdpUri = CdpEndpointFinder.getReportedUri("ms:edgeOptions", caps)
|
94 | 95 | .flatMap(reported -> CdpEndpointFinder.getCdpEndPoint(clientFactory, reported));
|
| 96 | + if (cdpUri.isPresent()) { |
| 97 | + LOG.log(getDebugLogLevel(), "Edge endpoint found"); |
| 98 | + } |
95 | 99 | return cdpUri.map(cdp -> createCdpEndPoint(cdp, downstream));
|
96 | 100 | }
|
97 | 101 |
|
|
0 commit comments