From 7d2d86f244ed99a72015b08726af6a8549b3038c Mon Sep 17 00:00:00 2001 From: Doug Culnane <32482395+dougculnane@users.noreply.github.com> Date: Fri, 4 Aug 2023 11:34:52 +0200 Subject: [PATCH] [renault] Small logging improvements. (#15368) * [renault] HTTP responses to debug not warn. * [renault] fix logging typo. --------- Signed-off-by: Doug Culnane --- .../java/org/openhab/binding/renault/internal/api/Car.java | 2 +- .../binding/renault/internal/api/MyRenaultHttpSession.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.openhab.binding.renault/src/main/java/org/openhab/binding/renault/internal/api/Car.java b/bundles/org.openhab.binding.renault/src/main/java/org/openhab/binding/renault/internal/api/Car.java index 0d08fa13a..8231be38d 100644 --- a/bundles/org.openhab.binding.renault/src/main/java/org/openhab/binding/renault/internal/api/Car.java +++ b/bundles/org.openhab.binding.renault/src/main/java/org/openhab/binding/renault/internal/api/Car.java @@ -196,7 +196,7 @@ public class Car { } } } catch (IllegalStateException | ClassCastException e) { - logger.warn("Error {} parsing Location: {}", e.getMessage(), responseJson); + logger.warn("Error {} parsing Lock Status: {}", e.getMessage(), responseJson); } } diff --git a/bundles/org.openhab.binding.renault/src/main/java/org/openhab/binding/renault/internal/api/MyRenaultHttpSession.java b/bundles/org.openhab.binding.renault/src/main/java/org/openhab/binding/renault/internal/api/MyRenaultHttpSession.java index 701f07fd1..e70756b90 100644 --- a/bundles/org.openhab.binding.renault/src/main/java/org/openhab/binding/renault/internal/api/MyRenaultHttpSession.java +++ b/bundles/org.openhab.binding.renault/src/main/java/org/openhab/binding/renault/internal/api/MyRenaultHttpSession.java @@ -331,8 +331,8 @@ public class MyRenaultHttpSession { response.getStatus(), response.getReason(), response.getContentAsString()); } } else { - logger.warn("Kamereon Request: {} Response: [{}] {}\n{}", request.getURI().toString(), response.getStatus(), - response.getReason(), response.getContentAsString()); + logger.debug("Kamereon Request: {} Response: [{}] {}\n{}", request.getURI().toString(), + response.getStatus(), response.getReason(), response.getContentAsString()); } }