diff options
author | Brian Beggs <macdiesel@gmail.com> | 2010-06-02 07:32:33 -0400 |
---|---|---|
committer | Brian Beggs <macdiesel@gmail.com> | 2010-06-02 07:32:33 -0400 |
commit | 686943a2ec3c97e4e39ee2e38d9fd571ed98dd35 (patch) | |
tree | f8a9b69630792567ddae16ce0627ee2c2b1c6caa /sleekxmpp/xmlstream/handler/callback.py | |
parent | dda3e733b59a9e71482538898a807623a79f0dbf (diff) | |
parent | 4eb210bff5753143300e5bf6ae09617901e9a28e (diff) | |
download | slixmpp-686943a2ec3c97e4e39ee2e38d9fd571ed98dd35.tar.gz slixmpp-686943a2ec3c97e4e39ee2e38d9fd571ed98dd35.tar.bz2 slixmpp-686943a2ec3c97e4e39ee2e38d9fd571ed98dd35.tar.xz slixmpp-686943a2ec3c97e4e39ee2e38d9fd571ed98dd35.zip |
Merge remote branch 'tom/hacks'
Diffstat (limited to 'sleekxmpp/xmlstream/handler/callback.py')
-rw-r--r-- | sleekxmpp/xmlstream/handler/callback.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/handler/callback.py b/sleekxmpp/xmlstream/handler/callback.py index 49cfa14d..ea5acb5b 100644 --- a/sleekxmpp/xmlstream/handler/callback.py +++ b/sleekxmpp/xmlstream/handler/callback.py @@ -17,13 +17,15 @@ class Callback(base.BaseHandler): self._once = once self._instream = instream - def prerun(self, payload): + def prerun(self, payload): # prerun actually calls run?!? WTF! Then it gets run AGAIN! base.BaseHandler.prerun(self, payload) if self._instream: + logging.debug('callback "%s" prerun', self.name) self.run(payload, True) def run(self, payload, instream=False): if not self._instream or instream: + logging.debug('callback "%s" run', self.name) base.BaseHandler.run(self, payload) #if self._thread: # x = threading.Thread(name="Callback_%s" % self.name, target=self._pointer, args=(payload,)) |