Permalink
Browse files

Shorten debug

  • Loading branch information...
1 parent fe0b2ad commit cd4c67d8d716c2c02e92959a02d79c2956552956 @gestiweb gestiweb committed Apr 7, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 bjsonrpc/connection.py
View
4 bjsonrpc/connection.py
@@ -592,7 +592,7 @@ def write_line(self, data):
"""
assert('\n' not in data)
if self._debug_socket:
- print "<:%d:" % len(data), data
+ print "<:%d:" % len(data), data[:80]
self._wbuffer += list(str(data + '\n'))
sbytes = 0
@@ -632,7 +632,7 @@ def read_line(self):
"""
data = self._readn()
if len(data) and self._debug_socket:
- print ">:%d:" % len(data), data
+ print ">:%d:" % len(data), data[:80]
return data
def settimeout(self, operation, timeout):

0 comments on commit cd4c67d

Please sign in to comment.