summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/telnetlib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/telnetlib.py b/Lib/telnetlib.py
index 4784a69..2012e16 100644
--- a/Lib/telnetlib.py
+++ b/Lib/telnetlib.py
@@ -188,6 +188,7 @@ class Telnet:
"""
if IAC in buffer:
buffer = string.replace(buffer, IAC, IAC+IAC)
+ self.msg("send %s", `buffer`)
self.sock.send(buffer)
def read_until(self, match, timeout=None):
@@ -365,6 +366,7 @@ class Telnet:
# The buffer size should be fairly small so as to avoid quadratic
# behavior in process_rawq() above
buf = self.sock.recv(50)
+ self.msg("recv %s", `buf`)
self.eof = (not buf)
self.rawq = self.rawq + buf