From: James Andrewartha Date: Sun, 25 Oct 2009 13:17:44 +0000 (+0800) Subject: add logging X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=1c5c2c9d2af9f0fba4616cac85e5beda7d3b3396;p=uccdoor.git add logging --- 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)