Skip to content

Commit

Permalink
add logging of a caught exception in TestSession
Browse files Browse the repository at this point in the history
log exception that can occur while sending delete session request

Signed-off-by: Daniel Davison <[email protected]>
  • Loading branch information
innokenty authored and ddavison committed Aug 27, 2015
1 parent 1ed597a commit f55c012
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions java/server/src/org/openqa/grid/internal/TestSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -561,13 +561,13 @@ public boolean sendDeleteSessionRequest() {
} catch (Throwable e) {
ok = false;
// corrupted or the something else already sent the DELETE.
log.severe("Error releasing. Server corrupted ?");
}finally{
try {
EntityUtils.consume(responseBody);
} catch (IOException e) {
log.warning("Consuming the response body when DELETE to the node" + e.getMessage());
}
log.severe("Unable to send DELETE request for the current session", e);
} finally {
try {
EntityUtils.consume(responseBody);
} catch (IOException e) {
log.warning("Consuming the response body when DELETE to the node " + e.getMessage());
}
}
return ok;
}
Expand Down

0 comments on commit f55c012

Please sign in to comment.