Skip to content

Instantly share code, notes, and snippets.

@berick
Created September 29, 2016 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berick/4bf7f1593cecb4ed07667ce0fd036c10 to your computer and use it in GitHub Desktop.
Save berick/4bf7f1593cecb4ed07667ce0fd036c10 to your computer and use it in GitHub Desktop.
diff --git a/src/pysip2/client.py b/src/pysip2/client.py
index 8afb58b..51fd98c 100644
--- a/src/pysip2/client.py
+++ b/src/pysip2/client.py
@@ -81,6 +81,8 @@ class Client(object):
pass
raise IOError("Disconnected from SIP2 server");
+ logging.debug('recv() read %d bytes : %s ' % (len(buf), buf))
+
msg_txt = msg_txt + buf.decode(TEXT_ENCODING)
if msg_txt[-Client.LINE_TERMINATOR_LEN:] == LINE_TERMINATOR:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment