mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-09-28 04:27:27 +02:00
Log the packet type when we get an invalid protobuf message (#343)
This commit is contained in:
parent
a3e3cec26e
commit
15edff86a3
@ -583,8 +583,9 @@ class APIConnection:
|
|||||||
msg.ParseFromString(pkt.data)
|
msg.ParseFromString(pkt.data)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
_LOGGER.info(
|
_LOGGER.info(
|
||||||
"%s: Invalid protobuf message: %s: %s",
|
"%s: Invalid protobuf message: type=%s data=%s: %s",
|
||||||
self.log_name,
|
self.log_name,
|
||||||
|
pkt.type,
|
||||||
pkt.data,
|
pkt.data,
|
||||||
e,
|
e,
|
||||||
exc_info=True,
|
exc_info=True,
|
||||||
|
Loading…
Reference in New Issue
Block a user