[kupfer] session: Add debug output



commit ca3a1d28980dafec3b5c799ee5407386eec355b3
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Thu Sep 10 20:50:35 2009 +0200

    session: Add debug output
    
    Add debug output so that users can see what the session connection
    module is looking for.

 kupfer/session.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/session.py b/kupfer/session.py
index 13e16e4..7f4f8c9 100644
--- a/kupfer/session.py
+++ b/kupfer/session.py
@@ -46,7 +46,8 @@ class SessionClient (gobject.GObject, pretty.OutputMixin):
 		try:
 			import gnome
 			import gnome.ui
-		except ImportError:
+		except ImportError, exc:
+			self.output_debug(exc)
 			return False
 
 		gnome.program_init(version.PACKAGE_NAME, version.VERSION)
@@ -66,6 +67,7 @@ class SessionClient (gobject.GObject, pretty.OutputMixin):
 		iface_name = service_name
 
 		if not dbus_iface.NameHasOwner(service_name):
+			self.output_debug("D-Bus name %s not found" % service_name)
 			return False
 
 		try:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]