fail less
authorJames Andrewartha <trs80@ucc.gu.uwa.edu.au>
Mon, 26 Oct 2009 03:07:00 +0000 (11:07 +0800)
committerJames Andrewartha <trs80@ucc.gu.uwa.edu.au>
Mon, 26 Oct 2009 03:07:00 +0000 (11:07 +0800)
server.py

index 91fa630..4bdcdd0 100755 (executable)
--- a/server.py
+++ b/server.py
@@ -72,7 +72,7 @@ class Door(dbus.service.Object):
             newstatus = -1
         
         if newstatus != self.status:
             newstatus = -1
         
         if newstatus != self.status:
-            syslog.syslog(142, "status changed detected for %s; status: %i, newstatus: %i" % self.service, self.status, newstatus)
+            syslog.syslog(142, "status changed detected for %s; status: %i, newstatus: %i" % (self.service, self.status, newstatus))
             self.status = newstatus
             # emit signal
             self.status_changed(newstatus)
             self.status = newstatus
             # emit signal
             self.status_changed(newstatus)

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