From 57cc93570832a9205bbd888f70200cf5d80d41f0 Mon Sep 17 00:00:00 2001 From: Kai Kreuzer Date: Tue, 28 Dec 2021 11:17:57 +0100 Subject: [PATCH] Reduce to debug logging in case of communication problems (#11872) Signed-off-by: Kai Kreuzer --- .../org/openhab/binding/nanoleaf/internal/OpenAPIUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.nanoleaf/src/main/java/org/openhab/binding/nanoleaf/internal/OpenAPIUtils.java b/bundles/org.openhab.binding.nanoleaf/src/main/java/org/openhab/binding/nanoleaf/internal/OpenAPIUtils.java index eb0433414..b23fd403f 100644 --- a/bundles/org.openhab.binding.nanoleaf/src/main/java/org/openhab/binding/nanoleaf/internal/OpenAPIUtils.java +++ b/bundles/org.openhab.binding.nanoleaf/src/main/java/org/openhab/binding/nanoleaf/internal/OpenAPIUtils.java @@ -117,13 +117,13 @@ public class OpenAPIUtils { Throwable cause = ee.getCause(); if (cause != null && cause instanceof HttpResponseException && ((HttpResponseException) cause).getResponse().getStatus() == HttpStatus.UNAUTHORIZED_401) { - LOGGER.warn("OpenAPI request unauthorized. Invalid authorization token."); + LOGGER.debug("OpenAPI request unauthorized. Invalid authorization token."); throw new NanoleafUnauthorizedException("Invalid authorization token"); } else { throw new NanoleafException("Failed to send OpenAPI request (final)", ee); } } catch (TimeoutException te) { - LOGGER.warn("OpenAPI request failed with timeout", te); + LOGGER.debug("OpenAPI request failed with timeout", te); throw new NanoleafException("Failed to send OpenAPI request: Timeout", te); } catch (InterruptedException ie) { throw new NanoleafInterruptedException("OpenAPI request has been interrupted", ie);