]> git.basschouten.com Git - openhab-addons.git/commitdiff
[androidtv] Normalized exception logging for both MessageParsers (#15157)
authormorph166955 <53797132+morph166955@users.noreply.github.com>
Fri, 30 Jun 2023 15:20:14 +0000 (10:20 -0500)
committerGitHub <noreply@github.com>
Fri, 30 Jun 2023 15:20:14 +0000 (17:20 +0200)
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
bundles/org.openhab.binding.androidtv/src/main/java/org/openhab/binding/androidtv/internal/protocol/googletv/GoogleTVMessageParser.java
bundles/org.openhab.binding.androidtv/src/main/java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVMessageParser.java

index a38f37106effe529a2c54e3e02865d97128c2b3b..4b956d5cc0de369e30e15538a84ef33c6ca32a67 100644 (file)
@@ -329,8 +329,8 @@ public class GoogleTVMessageParser {
                 logger.info("{} - Unknown payload received. {} {}", thingId, len, msg);
             }
         } catch (Exception e) {
-            logger.debug("{} - Message Parser Exception on {}", thingId, msg);
-            logger.debug("Message Parser Caught Exception", e);
+            logger.warn("{} - Message Parser Exception on {}", thingId, msg);
+            logger.warn("{} - Message Parser Caught Exception", thingId, e);
         }
     }
 }
index f78bc388ce1727346aa24cebc1cdc4780b3aed87..4208897fe9ccf8cf34a71d9636b218d7ae83ca80 100644 (file)
@@ -443,7 +443,8 @@ public class ShieldTVMessageParser {
                 logger.info("{} - Unknown payload received. {}", thingId, msg);
             }
         } catch (Exception e) {
-            logger.info("{} - Message Parser Caught Exception", thingId, e);
+            logger.warn("{} - Message Parser Exception on {}", thingId, msg);
+            logger.warn("{} - Message Parser Caught Exception", thingId, e);
         }
     }
 }