mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-12-21 03:00:14 +00:00
removed some superfluous debug logging
This commit is contained in:
parent
0a23f84ec3
commit
dd9f33b7d9
2 changed files with 4 additions and 4 deletions
|
@ -20,12 +20,12 @@ class Callback(base.BaseHandler):
|
||||||
def prerun(self, payload): # prerun actually calls run?!? WTF! Then it gets run AGAIN!
|
def prerun(self, payload): # prerun actually calls run?!? WTF! Then it gets run AGAIN!
|
||||||
base.BaseHandler.prerun(self, payload)
|
base.BaseHandler.prerun(self, payload)
|
||||||
if self._instream:
|
if self._instream:
|
||||||
logging.debug('callback "%s" prerun', self.name)
|
# logging.debug('callback "%s" prerun', self.name)
|
||||||
self.run(payload, True)
|
self.run(payload, True)
|
||||||
|
|
||||||
def run(self, payload, instream=False):
|
def run(self, payload, instream=False):
|
||||||
if not self._instream or instream:
|
if not self._instream or instream:
|
||||||
logging.debug('callback "%s" run', self.name)
|
# logging.debug('callback "%s" run', self.name)
|
||||||
base.BaseHandler.run(self, payload)
|
base.BaseHandler.run(self, payload)
|
||||||
#if self._thread:
|
#if self._thread:
|
||||||
# x = threading.Thread(name="Callback_%s" % self.name, target=self._pointer, args=(payload,))
|
# x = threading.Thread(name="Callback_%s" % self.name, target=self._pointer, args=(payload,))
|
||||||
|
|
|
@ -352,11 +352,11 @@ class XMLStream(object):
|
||||||
# TODO inefficient linear search; performance might be improved by hashtable lookup
|
# TODO inefficient linear search; performance might be improved by hashtable lookup
|
||||||
for handler in self.__handlers:
|
for handler in self.__handlers:
|
||||||
if handler.match(stanza):
|
if handler.match(stanza):
|
||||||
logging.debug('matched stanza to handler %s', handler.name)
|
# logging.debug('matched stanza to handler %s', handler.name)
|
||||||
handler.prerun(stanza)
|
handler.prerun(stanza)
|
||||||
self.eventqueue.put(('stanza', handler, stanza))
|
self.eventqueue.put(('stanza', handler, stanza))
|
||||||
if handler.checkDelete():
|
if handler.checkDelete():
|
||||||
logging.debug('deleting callback %s', handler.name)
|
# logging.debug('deleting callback %s', handler.name)
|
||||||
self.__handlers.pop(self.__handlers.index(handler))
|
self.__handlers.pop(self.__handlers.index(handler))
|
||||||
unhandled = False
|
unhandled = False
|
||||||
if unhandled:
|
if unhandled:
|
||||||
|
|
Loading…
Reference in a new issue