Skip to content

Commit 9837fef

Browse files
committed
[grid] log unsuccessful attempts to create a session
1 parent fa69340 commit 9837fef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

java/src/org/openqa/selenium/grid/distributor/local/LocalDistributor.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,9 @@ private void checkMatchingSlot(List<SessionRequestCapability> sessionRequests) {
808808
.count();
809809

810810
if (unmatchableCount == request.getDesiredCapabilities().size()) {
811+
LOG.info(
812+
"No nodes support the capabilities in the request: "
813+
+ request.getDesiredCapabilities());
811814
SessionNotCreatedException exception =
812815
new SessionNotCreatedException("No nodes support the capabilities in the request");
813816
sessionQueue.complete(request.getRequestId(), Either.left(exception));
@@ -853,7 +856,7 @@ private void handleNewSessionRequest(SessionRequest sessionRequest) {
853856
// not stall
854857
if (!isSessionValid && response.isRight()) {
855858
LOG.log(
856-
Debug.getDebugLogLevel(),
859+
Level.INFO,
857860
"Session for request {0} has been created but it has timed out, stopping it to avoid"
858861
+ " stalled browser",
859862
reqId.toString());

0 commit comments

Comments
 (0)