print debugging goes better with dbus-monitor
authorJames Andrewartha <trs80@ucc.gu.uwa.edu.au>
Sun, 25 Oct 2009 13:37:30 +0000 (21:37 +0800)
committerJames Andrewartha <trs80@ucc.gu.uwa.edu.au>
Sun, 25 Oct 2009 13:37:30 +0000 (21:37 +0800)
client-xmpp.py

index 0f52bf0..6eebce7 100755 (executable)
@@ -49,8 +49,10 @@ class Door(object):
             pass
         
         self.state_changed(new_state)
+        self.doorname = doorname
     
     def state_changed(self, new_state):
+        print "xmpp state change detected for %s from %i to %i" % (self.doorname, self.state, newstate)
         self.state = new_state
         # look up the dictionary object for the current state, then construct
         # a presence object using that as a keyword argument

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