Skip to content

Commit

Permalink
fixup r13013: the function must be imported to be used, add debug log…
Browse files Browse the repository at this point in the history
…ging with full stacktrace in case of errors

git-svn-id: https://xpra.org/svn/Xpra/trunk@13018 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 15, 2016
1 parent 186a0ea commit 7c3d3f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/dbus/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
def loop_init():
global _loop
if not _loop:
from dbus.mainloop.glib import DBusGMainLoop
dbus.mainloop.glib.threads_init()
from dbus.mainloop.glib import DBusGMainLoop, threads_init
threads_init()
_loop = DBusGMainLoop(set_as_default=True)
return _loop

Expand Down
1 change: 1 addition & 0 deletions src/xpra/platform/xposix/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ def setup_dbus_signals(self):
self.system_bus = bus
dbuslog("setup_dbus_signals() system bus=%s", bus)
except Exception as e:
dbuslog("setup_dbus_signals()", exc_info=True)
dbuslog.error("Error setting up dbus signals:")
dbuslog.error(" %s", e)
return
Expand Down

0 comments on commit 7c3d3f2

Please sign in to comment.