1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-18 15:55:46 +00:00

Fix missing protobuf message dump for batched messages with very verbose logging (#9206)

This commit is contained in:
J. Nick Koston
2025-06-26 03:57:41 +02:00
committed by GitHub
parent 79e3d2b2d7
commit f029f4f20e
5 changed files with 136 additions and 130 deletions

View File

@@ -276,6 +276,11 @@ uint16_t APIConnection::encode_message_to_buffer(ProtoMessage &msg, uint16_t mes
// Encode directly into buffer
msg.encode(buffer);
#ifdef HAS_PROTO_MESSAGE_DUMP
// Log the message for VV debugging
conn->log_send_message_(msg.message_name(), msg.dump());
#endif
// Calculate actual encoded size (not including header that was already added)
size_t actual_payload_size = shared_buf.size() - size_before_encode;