Skip to content

Commit

Permalink
[grid] log unsuccessful attempts to create a session
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg1985 authored and sandeepsuryaprasad committed Oct 29, 2024
1 parent d396e8c commit 962814d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,9 @@ private void checkMatchingSlot(List<SessionRequestCapability> sessionRequests) {
.count();

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

0 comments on commit 962814d

Please sign in to comment.