From: James Andrewartha Date: Tue, 20 Oct 2009 07:13:04 +0000 (+0800) Subject: add logging of status returned X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=5e211c6460db7dd20b77d147eca5a15a0df41a4b;p=uccdoor.git add logging of status returned --- diff --git a/server.py b/server.py index 69a0d7e..5f7b571 100755 --- a/server.py +++ b/server.py @@ -31,8 +31,8 @@ def check_LAT_service(servicename, retries=3): wfh.flush() except: results['error'] -= 1 - if results['error'] == 0: return -1 syslog.syslog(142, "c_L_s write error:" + servicename) + if results['error'] == 0: return -1 continue syslog.syslog(142, "c_Ls written data to " + servicename) rr, wr, er = select([rfh], [], [], 3.0) @@ -80,7 +80,9 @@ class Door(dbus.service.Object): except: newstatus = -1 + syslog.syslog(142, "status, newstatus for %s is %i, %i" % (servicename, status, newstatus)) if newstatus != self.status: + syslog.syslog(142, "status changed detected for %s" % servicename) self.status = newstatus # emit signal self.status_changed(newstatus)