Skip to content

Commit b9cba77

Browse files
authored
Improved debugging
Prints received packet during a debug client session.
1 parent 472c501 commit b9cba77

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ def new(self):
9292
data = []
9393
while True:
9494
packet = self.client.recv(1024)
95+
if self.debug:
96+
print(packet)
9597
replaced = packet.replace(b'*L_?*', b'')
9698
if packet:
9799
data.append(replaced)

0 commit comments

Comments
 (0)