Skip to content

Commit f92219a

Browse files
committed
Better debug logging in the w3c response codec
1 parent da0c26c commit f92219a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

java/client/src/org/openqa/selenium/remote/http/W3CHttpResponseCodec.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ public class W3CHttpResponseCodec extends AbstractHttpResponseCodec {
4848

4949
@Override
5050
public Response decode(HttpResponse encodedResponse) {
51-
log.fine("Decoding response. Response code was: " + encodedResponse.getStatus());
52-
5351
String content = encodedResponse.getContentString().trim();
52+
log.fine(String.format(
53+
"Decoding response. Response code was: %d and content: %s",
54+
encodedResponse.getStatus(),
55+
content));
5456
String contentType = nullToEmpty(encodedResponse.getHeader(CONTENT_TYPE));
5557

5658
Response response = new Response();

0 commit comments

Comments
 (0)