Log response json on debug level

pull/33/head
Ulf Sauer 2017-08-11 11:37:45 +02:00
parent 9c0247c09b
commit 5ad28394e9
1 changed files with 1 additions and 2 deletions

View File

@ -214,13 +214,12 @@ public class DefaultConnection implements Connection {
JSON result = null;
String response = "";
try {
InputStream in =
conn.getResponseCode() < 400 ? conn.getInputStream() : conn.getErrorStream();
if (in != null) {
result = JSON.parse(in);
LOG.debug("Result JSON: {}", response);
LOG.debug("Result JSON: {}", result);
}
} catch (IOException ex) {
throw new AcmeNetworkException(ex);