Commit 9859a01b authored by André's avatar André
Browse files

[hamster] Fix logging

parent c7f05d94
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 ...@@ -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): ...@@ -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',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment