duh
authorJames Andrewartha <[email protected]>
Tue, 20 Oct 2009 07:14:16 +0000 (15:14 +0800)
committerJames Andrewartha <[email protected]>
Tue, 20 Oct 2009 07:14:16 +0000 (15:14 +0800)
server.py

index 5f7b571..89f28bc 100755 (executable)
--- a/server.py
+++ b/server.py
@@ -80,9 +80,9 @@ class Door(dbus.service.Object):
         except:
             newstatus = -1
         
         except:
             newstatus = -1
         
-        syslog.syslog(142, "status, newstatus for %s is %i, %i" % (servicename, status, newstatus))
+        syslog.syslog(142, "status, newstatus for %s is %i, %i" % (self.service, status, newstatus))
         if newstatus != self.status:
         if newstatus != self.status:
-            syslog.syslog(142, "status changed detected for  %s" % servicename)
+            syslog.syslog(142, "status changed detected for  %s" % self.service)
             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