Browse Source

Add debug logging for sent packets

pull/21/head
Gabriel Huber 4 years ago
parent
commit
35136d9389
  1. 1
      a2s/a2s_async.py
  2. 1
      a2s/a2s_sync.py

1
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)

1
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)

Loading…
Cancel
Save