From 1c5c2c9d2af9f0fba4616cac85e5beda7d3b3396 Mon Sep 17 00:00:00 2001 From: James Andrewartha Date: Sun, 25 Oct 2009 21:17:44 +0800 Subject: [PATCH] add logging --- client-xmpp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client-xmpp.py b/client-xmpp.py index b9af4cb..78ce6e3 100755 --- a/client-xmpp.py +++ b/client-xmpp.py @@ -3,6 +3,7 @@ # David Adam # Released under an MIT-style license; see COPYING for details. +import syslog import dbus import gobject import xmpp @@ -43,7 +44,8 @@ class Door(object): try: new_state = self.remoteobj.get_status(dbus_interface='au.asn.ucc.DoorInterface') - except: + except Exception as e: + syslog.syslog(142, "get_status failed: %s" % e) pass self.state_changed(new_state) -- 2.20.1