Log the packet type when we get an invalid protobuf message (#343)

This commit is contained in:
J. Nick Koston 2023-01-03 12:40:17 -10:00 committed by GitHub
parent a3e3cec26e
commit 15edff86a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -583,8 +583,9 @@ class APIConnection:
msg.ParseFromString(pkt.data)
except Exception as e:
_LOGGER.info(
"%s: Invalid protobuf message: %s: %s",
"%s: Invalid protobuf message: type=%s data=%s: %s",
self.log_name,
pkt.type,
pkt.data,
e,
exc_info=True,