From 3f366db009c6e533eb59c201ffeef50fb757b768 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 5 Sep 2009 21:35:14 +0200 Subject: [PATCH] fix log in pubsub.py --- src/common/pubsub.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/pubsub.py b/src/common/pubsub.py index d253d548e..8f65ff1a8 100644 --- a/src/common/pubsub.py +++ b/src/common/pubsub.py @@ -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