diff options
author | Thom Nichols <tmnichols@gmail.com> | 2010-06-01 22:55:01 -0400 |
---|---|---|
committer | Thom Nichols <tmnichols@gmail.com> | 2010-06-01 22:55:01 -0400 |
commit | 060b4c39385e548d1b28bc5ea5bdb29417e156ea (patch) | |
tree | d2c9369965b77e37bb065029ac572c35a9f5f1da /sleekxmpp/xmlstream/handler/callback.py | |
parent | 49f5767aea2815211349d93aa03ce2b9dc088c1e (diff) | |
parent | 4eb210bff5753143300e5bf6ae09617901e9a28e (diff) | |
download | slixmpp-060b4c39385e548d1b28bc5ea5bdb29417e156ea.tar.gz slixmpp-060b4c39385e548d1b28bc5ea5bdb29417e156ea.tar.bz2 slixmpp-060b4c39385e548d1b28bc5ea5bdb29417e156ea.tar.xz slixmpp-060b4c39385e548d1b28bc5ea5bdb29417e156ea.zip |
Merge branch 'hacks' of github.com:tomstrummer/SleekXMPP
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,)) |