summaryrefslogtreecommitdiff
path: root/python/qpid/framer.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-03-11 14:29:17 +0000
committerRafael H. Schloming <rhs@apache.org>2008-03-11 14:29:17 +0000
commit5c70b29392ab7f7252d7923d98616794f6200eab (patch)
tree23caf5119ab5bc73530d4d3747ca56ce16838de4 /python/qpid/framer.py
parentd38d509af075300441ad858b1bb7680ac6b8e5ca (diff)
downloadqpid-python-5c70b29392ab7f7252d7923d98616794f6200eab.tar.gz
added convenience API for turning on logging; added logging for controls and commands; made logging prettier
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@635939 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/framer.py')
-rw-r--r--python/qpid/framer.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/qpid/framer.py b/python/qpid/framer.py
index 3cc200e3da..11fe385d46 100644
--- a/python/qpid/framer.py
+++ b/python/qpid/framer.py
@@ -88,7 +88,7 @@ class Framer(Packer):
raise Closed()
else:
continue
- raw.debug("SENT: %r", buf[:n])
+ raw.debug("SENT %r", buf[:n])
buf = buf[n:]
def read(self, n):
@@ -109,7 +109,7 @@ class Framer(Packer):
if len(s) == 0:
raise Closed()
data += s
- raw.debug("RECV: %r", s)
+ raw.debug("RECV %r", s)
return data
def read_header(self):
@@ -125,7 +125,7 @@ class Framer(Packer):
self.write(frame.payload)
# XXX: NOT 0-10 FINAL, TEMPORARY WORKAROUND for C++
self.write("\xCE")
- frm.debug("SENT: %s", frame)
+ frm.debug("SENT %s", frame)
def read_frame(self):
flags, type, size, track, channel = self.unpack(Frame.HEADER)
@@ -136,5 +136,5 @@ class Framer(Packer):
if end != "\xCE":
raise FramingError()
frame = Frame(flags, type, track, channel, payload)
- frm.debug("RECV: %s", frame)
+ frm.debug("RECV %s", frame)
return frame