From 5e211c6460db7dd20b77d147eca5a15a0df41a4b Mon Sep 17 00:00:00 2001 From: James Andrewartha Date: Tue, 20 Oct 2009 15:13:04 +0800 Subject: [PATCH] add logging of status returned --- server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.20.1