[hamster] Fix logging
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
import dbus
|
import dbus
|
||||||
import datetime as dt
|
import datetime as dt
|
||||||
|
import logging
|
||||||
|
|
||||||
from gi.repository import GObject
|
from gi.repository import GObject
|
||||||
|
|
||||||
@@ -13,6 +14,8 @@ from gajim.plugins.helpers import log_calls
|
|||||||
from gajim.plugins.plugins_i18n import _
|
from gajim.plugins.plugins_i18n import _
|
||||||
from gajim.common.const import ACTIVITIES
|
from gajim.common.const import ACTIVITIES
|
||||||
|
|
||||||
|
log = logging.getLogger('gajim.p.hamster')
|
||||||
|
|
||||||
|
|
||||||
HAMSTAER_INTERFACE = 'org.gnome.Hamster'
|
HAMSTAER_INTERFACE = 'org.gnome.Hamster'
|
||||||
SUBACTIVITIES = []
|
SUBACTIVITIES = []
|
||||||
@@ -45,7 +48,7 @@ class HamsterIntegrationPlugin(GajimPlugin):
|
|||||||
self.session_presence = self.bus.get_object(HAMSTAER_INTERFACE,
|
self.session_presence = self.bus.get_object(HAMSTAER_INTERFACE,
|
||||||
'/org/gnome/Hamster')
|
'/org/gnome/Hamster')
|
||||||
except:
|
except:
|
||||||
app.log.debug('Hamster D-Bus service not found')
|
log.debug('Hamster D-Bus service not found')
|
||||||
return
|
return
|
||||||
|
|
||||||
self.bus.add_signal_receiver(self.hamster_facts_changed, 'FactsChanged',
|
self.bus.add_signal_receiver(self.hamster_facts_changed, 'FactsChanged',
|
||||||
|
|||||||
Reference in New Issue
Block a user