From 8092ffaa349aa0a8062364f7ba2cfd45aff6395c Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Fri, 24 Jun 2011 21:08:13 +0300 Subject: [PATCH] More logging during startup of MprisFrontend --- mopidy/frontends/mpris.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mopidy/frontends/mpris.py b/mopidy/frontends/mpris.py index 8cf73359..4decfb3e 100644 --- a/mopidy/frontends/mpris.py +++ b/mopidy/frontends/mpris.py @@ -84,8 +84,10 @@ class MprisFrontend(ThreadingActor, BaseFrontend): def on_stop(self): for dbus_object in self.dbus_objects: + logger.debug(u'Removing %s from connection...', dbus_object) dbus_object.remove_from_connection() self.dbus_objects = [] + logger.debug(u'Removed all D-Bus objects from connection') def send_startup_notification(self): """ @@ -98,14 +100,16 @@ class MprisFrontend(ThreadingActor, BaseFrontend): """ try: import indicate + logger.debug(u'Sending startup notification...') self.indicate_server = indicate.Server() self.indicate_server.set_type('music.mopidy') # FIXME Location of .desktop file shouldn't be hardcoded self.indicate_server.set_desktop_file( '/usr/share/applications/mopidy.desktop') self.indicate_server.show() + logger.debug(u'Startup notification sent') except ImportError as e: - logger.debug(u'Startup notification was not sent. (%s)', e) + logger.debug(u'Startup notification was not sent (%s)', e) class MprisObject(dbus.service.Object):