]> git.basschouten.com Git - openhab-addons.git/commitdiff
Reduce to debug logging in case of communication problems (#11872)
authorKai Kreuzer <kai@openhab.org>
Tue, 28 Dec 2021 10:17:57 +0000 (11:17 +0100)
committerGitHub <noreply@github.com>
Tue, 28 Dec 2021 10:17:57 +0000 (11:17 +0100)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
bundles/org.openhab.binding.nanoleaf/src/main/java/org/openhab/binding/nanoleaf/internal/OpenAPIUtils.java

index eb0433414e3bbdbd1486d02b23e7468d647e2a0d..b23fd403f5d326509adbe05acf910e69ed0ef03a 100644 (file)
@@ -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);