From 0d2d7ce2849ecdb061f11153853832d6c57728f4 Mon Sep 17 00:00:00 2001 From: Hylke van der Schaaf Date: Tue, 19 Mar 2024 14:54:59 +0100 Subject: [PATCH] Fixed debug output --- .../iosb/ilt/sensorthingsimporter/utils/UrlUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsimporter/utils/UrlUtils.java b/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsimporter/utils/UrlUtils.java index f10c3f6..895149c 100644 --- a/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsimporter/utils/UrlUtils.java +++ b/src/main/java/de/fraunhofer/iosb/ilt/sensorthingsimporter/utils/UrlUtils.java @@ -113,9 +113,9 @@ public static HttpResponse readNormalUrl(String targetUrl, Charset charset, List String data = entityToString(entity, charset); if (LOGGER.isTraceEnabled()) { - LOGGER.trace("Received: ", Utils.cleanForLogging(data)); + LOGGER.trace("Received: {}", Utils.cleanForLogging(data)); } else if (LOGGER.isDebugEnabled()) { - LOGGER.trace("Received: ", Utils.cleanForLogging(data, 100)); + LOGGER.debug("Received: {}", Utils.cleanForLogging(data, 100)); } return new HttpResponse(statusCode, data, response.getAllHeaders());