[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 10:20:14 -05:00 committed by GitHub
parent e1d0dcea97
commit d12693419c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View 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);
}
}
}

View 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);
}
}
}