From: Kai Kreuzer Date: Tue, 28 Dec 2021 10:17:57 +0000 (+0100) Subject: Reduce to debug logging in case of communication problems (#11872) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=57cc93570832a9205bbd888f70200cf5d80d41f0;p=openhab-addons.git Reduce to debug logging in case of communication problems (#11872) Signed-off-by: Kai Kreuzer --- 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 eb0433414e..b23fd403f5 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);