From f3611890611e436484fc213b39b8a4f5bd691cd6 Mon Sep 17 00:00:00 2001 From: James Andrewartha Date: Sun, 25 Oct 2009 21:37:30 +0800 Subject: [PATCH] print debugging goes better with dbus-monitor --- client-xmpp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client-xmpp.py b/client-xmpp.py index 0f52bf0..6eebce7 100755 --- a/client-xmpp.py +++ b/client-xmpp.py @@ -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 -- 2.20.1