diff --git a/common/src/main/java/ctbrec/LoggingInterceptor.java b/common/src/main/java/ctbrec/LoggingInterceptor.java index 83c0b8db..b2a4457f 100644 --- a/common/src/main/java/ctbrec/LoggingInterceptor.java +++ b/common/src/main/java/ctbrec/LoggingInterceptor.java @@ -11,7 +11,7 @@ import okhttp3.Response; public class LoggingInterceptor implements Interceptor { - private static final transient Logger LOG = LoggerFactory.getLogger(LoggingInterceptor.class); + private static final Logger LOG = LoggerFactory.getLogger(LoggingInterceptor.class); @Override public Response intercept(Chain chain) throws IOException { @@ -19,7 +19,7 @@ public class LoggingInterceptor implements Interceptor { Request request = chain.request(); LOG.debug("OkHttp Sending request {} on {}\n{}", request.url(), chain.connection(), request.headers()); if(request.method().equalsIgnoreCase("POST")) { - LOG.debug("Body: {}", request.body().toString()); + LOG.debug("Body: {}", request.body()); } Response response = chain.proceed(request); long t2 = System.nanoTime();