Skip to content

Commit

Permalink
better dbus error logging, only log the full stacktrace if this is an…
Browse files Browse the repository at this point in the history
… unknown error

git-svn-id: https://xpra.org/svn/Xpra/trunk@14385 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 3, 2016
1 parent fe8534f commit ad6524f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/xpra/server/server_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,11 @@ def init_dbus_server(self):
self.dbus_server = self.make_dbus_server()
dbuslog("init_dbus_server() dbus_server=%s", self.dbus_server)
except Exception as e:
dbuslog.error("Error setting up our dbus server:", exc_info=True)
dbuslog.error(" %s", e)
if str(e).find("org.freedesktop.DBus.Error.NoServer")<0:
dbuslog.error("dbus server error", exc_info=True)
dbuslog.error("Error setting up our dbus server:")
for x in str(e).split(":"):
dbuslog.error(" %s", x.strip())

def make_dbus_server(self):
from xpra.server.dbus.dbus_server import DBUS_Server
Expand Down

0 comments on commit ad6524f

Please sign in to comment.