[androidtv] Normalized exception logging for both MessageParsers (#15157)

Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
This commit is contained in:
morph166955
2023-06-30 17:20:14 +02:00
committed by GitHub
parent e1d0dcea97
commit d12693419c
2 changed files with 4 additions and 3 deletions
@@ -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);
}
}
}
@@ -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);
}
}
}