X-Git-Url: https://juplo.de/gitweb/?p=facebook-errors;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Ffacebook%2Ferrors%2FGraphApiErrorHandler.java;h=fe2932c40795f098ffff5264581f205b8edb3414;hp=e541965b2ee2a62d9125e9c9a14c8660671db789;hb=332e6acc43a9f69e96519d26237fe5a737f2f392;hpb=c2be258f2b9cbf81e42eb9cbc273d5eb216c80cd diff --git a/src/main/java/de/juplo/facebook/errors/GraphApiErrorHandler.java b/src/main/java/de/juplo/facebook/errors/GraphApiErrorHandler.java index e541965..fe2932c 100644 --- a/src/main/java/de/juplo/facebook/errors/GraphApiErrorHandler.java +++ b/src/main/java/de/juplo/facebook/errors/GraphApiErrorHandler.java @@ -89,7 +89,12 @@ public class GraphApiErrorHandler implements ResponseErrorHandler // The body of the HTTP-message could not be parsed. // Let the parent error-handler try to handle the response. - LOG.warn("Could not convert the response into an exception, because the body is unparsable: {}", body); + LOG.warn( + "Could not convert the response into an exception, " + + "because the body is unparsable: error={}, body={}", + e.toString(), + new String(body, Charset.forName("UTF-8")) + ); // To do so, we have to wrap the original response to fill in // the buffered body, if needed