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:
- 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)