From 06029a1331d138703079cdf18b75490ff58c8c9f Mon Sep 17 00:00:00 2001 From: 0xboobface <0xboobface@gmail.com> Date: Fri, 12 Jun 2020 18:22:12 +0200 Subject: [PATCH] Code cleanup --- common/src/main/java/ctbrec/LoggingInterceptor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();