[api] Use stack buffer for VERY_VERBOSE proto message dumps (#13176)

This commit is contained in:
J. Nick Koston
2026-01-13 08:04:48 -10:00
committed by GitHub
parent 7abb374f2a
commit 7fed9144a6
8 changed files with 661 additions and 421 deletions
+2 -1
View File
@@ -305,7 +305,8 @@ uint16_t APIConnection::encode_message_to_buffer(ProtoMessage &msg, uint8_t mess
#ifdef HAS_PROTO_MESSAGE_DUMP
// If in log-only mode, just log and return
if (conn->flags_.log_only_mode) {
conn->log_send_message_(msg.message_name(), msg.dump());
DumpBuffer dump_buf;
conn->log_send_message_(msg.message_name(), msg.dump_to(dump_buf));
return 1; // Return non-zero to indicate "success" for logging
}
#endif