summaryrefslogtreecommitdiff
path: root/python/qpid/delegates.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/delegates.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/delegates.py')
-rw-r--r--python/qpid/delegates.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/python/qpid/delegates.py b/python/qpid/delegates.py
index 8de7141962..9df2cd04bd 100644
--- a/python/qpid/delegates.py
+++ b/python/qpid/delegates.py
@@ -20,6 +20,9 @@
import os, connection010, session
from util import notify
from datatypes import RangedSet
+from logging import getLogger
+
+log = getLogger("qpid.io.ctl")
class Delegate:
@@ -37,9 +40,10 @@ class Delegate:
ch = ssn.channel
if seg.track == self.control:
- cntrl = seg.decode(self.spec)
- attr = cntrl._type.qname.replace(".", "_")
- getattr(self, attr)(ch, cntrl)
+ ctl = seg.decode(self.spec)
+ log.debug("RECV %s", ctl)
+ attr = ctl._type.qname.replace(".", "_")
+ getattr(self, attr)(ch, ctl)
elif ssn is None:
ch.session_detached()
else: