Skip to content

Commit 5cfacac

Browse files
committed
feat(teamcom): add debug message about proto sizes
1 parent a603495 commit 5cfacac

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/bitbots_team_communication/bitbots_team_communication/bitbots_team_communication/bitbots_team_communication.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ def is_still_valid(time: Optional[TimeMsg]) -> bool:
274274
return (time is not None) and (now - Time.from_msg(time) < Duration(seconds=self.lifetime))
275275

276276
message = self.protocol_converter.convert_to_message(self, msg, is_still_valid)
277-
self.socket_communication.send_message(message.SerializeToString())
277+
proto_msg = message.SerializeToString()
278+
self.logger.debug(f"Sending msg with size {len(proto_msg)} bytes")
279+
self.socket_communication.send_message(proto_msg)
278280

279281
def create_empty_message(self, now: Time) -> Proto.Message:
280282
message = Proto.Message()

0 commit comments

Comments
 (0)