fix log in pubsub.py

This commit is contained in:
Yann Leboulanger 2009-09-05 21:35:14 +02:00
parent bb2637b95c
commit 3f366db009
1 changed files with 4 additions and 2 deletions

View File

@ -24,6 +24,8 @@
import xmpp
import gajim
import connection_handlers
import logging
log = logging.getLogger('gajim.c.pubsub')
class ConnectionPubSub:
def __init__(self):
@ -144,7 +146,7 @@ class ConnectionPubSub:
self.connection.send(query)
def _PubSubCB(self, conn, stanza):
gajim.log.debug('_PubsubCB')
log.debug('_PubsubCB')
try:
cb, args, kwargs = self.__callbacks.pop(stanza.getID())
cb(conn, stanza, *args, **kwargs)
@ -167,7 +169,7 @@ class ConnectionPubSub:
self._parse_bookmarks(storage, 'pubsub')
def _PubSubErrorCB(self, conn, stanza):
gajim.log.debug('_PubsubErrorCB')
log.debug('_PubsubErrorCB')
pubsub = stanza.getTag('pubsub')
if not pubsub:
return