Skip to content

Commit f55c012

Browse files
innokentyddavison
authored andcommittedAug 27, 2015
add logging of a caught exception in TestSession
log exception that can occur while sending delete session request Signed-off-by: Daniel Davison <[email protected]>
1 parent 1ed597a commit f55c012

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

Diff for: ‎java/server/src/org/openqa/grid/internal/TestSession.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -561,13 +561,13 @@ public boolean sendDeleteSessionRequest() {
561561
} catch (Throwable e) {
562562
ok = false;
563563
// corrupted or the something else already sent the DELETE.
564-
log.severe("Error releasing. Server corrupted ?");
565-
}finally{
566-
try {
567-
EntityUtils.consume(responseBody);
568-
} catch (IOException e) {
569-
log.warning("Consuming the response body when DELETE to the node" + e.getMessage());
570-
}
564+
log.severe("Unable to send DELETE request for the current session", e);
565+
} finally {
566+
try {
567+
EntityUtils.consume(responseBody);
568+
} catch (IOException e) {
569+
log.warning("Consuming the response body when DELETE to the node " + e.getMessage());
570+
}
571571
}
572572
return ok;
573573
}

0 commit comments

Comments
 (0)
Please sign in to comment.