diff --git a/a2s/a2s_async.py b/a2s/a2s_async.py index 9ac77e7..5131c35 100644 --- a/a2s/a2s_async.py +++ b/a2s/a2s_async.py @@ -112,6 +112,7 @@ class A2SStreamAsync: return cls(transport, protocol, timeout) def send(self, payload): + logger.debug("Sending packet: %r", payload) packet = HEADER_SIMPLE + payload self.transport.sendto(packet) diff --git a/a2s/a2s_sync.py b/a2s/a2s_sync.py index 937853d..6e97e33 100644 --- a/a2s/a2s_sync.py +++ b/a2s/a2s_sync.py @@ -60,6 +60,7 @@ class A2SStream: self.close() def send(self, data): + logger.debug("Sending packet: %r", data) packet = HEADER_SIMPLE + data self._socket.sendto(packet, self.address)