add logging
authorJames Andrewartha <trs80@ucc.gu.uwa.edu.au>
Sun, 25 Oct 2009 13:17:44 +0000 (21:17 +0800)
committerJames Andrewartha <trs80@ucc.gu.uwa.edu.au>
Sun, 25 Oct 2009 13:17:44 +0000 (21:17 +0800)
client-xmpp.py

index b9af4cb..78ce6e3 100755 (executable)
@@ -3,6 +3,7 @@
 # David Adam <zanchey@ucc.gu.uwa.edu.au>
 # 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)

UCC git Repository :: git.ucc.asn.au