From 9cf7d6c8710cf05188370b5e918c13c47c0a6293 Mon Sep 17 00:00:00 2001 From: Marvin Kruse Date: Mon, 10 Jul 2017 11:43:02 +0200 Subject: [PATCH] Changed logging to FINE level to avoid verbose logging when on INFO level --- src/main/java/com/ecwid/maleorang/MailchimpClient.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ecwid/maleorang/MailchimpClient.kt b/src/main/java/com/ecwid/maleorang/MailchimpClient.kt index 1e5338d..4ac262d 100644 --- a/src/main/java/com/ecwid/maleorang/MailchimpClient.kt +++ b/src/main/java/com/ecwid/maleorang/MailchimpClient.kt @@ -35,7 +35,7 @@ open class MailchimpClient protected constructor ( val methodInfo = MailchimpMethodInfo(method) val request = Connector.Request(methodInfo.httpMethod.name, methodInfo.buildUrl(apiKey), "ignorable", apiKey, methodInfo.requestBody) - if (log.isLoggable(Level.INFO)) { + if (log.isLoggable(Level.FINE)) { val sb = StringBuilder("Request: ") sb.append(request.method).append(' ').append(request.url) if (request.requestBody != null) { @@ -46,7 +46,7 @@ open class MailchimpClient protected constructor ( val response = connector.call(request) - if (log.isLoggable(Level.INFO)) { + if (log.isLoggable(Level.FINE)) { val sb = StringBuilder("Response: ") sb.append(response.statusCode).append(' ').append(response.reasonPhrase) if (response.responseBody != null) {