diff options
author | Dan Williams <dcbw@redhat.com> | 2007-03-16 14:12:50 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2007-03-16 14:12:50 (GMT) |
commit | bd2ff74be41b0da21abe45f67a16d98d272f5cbc (patch) | |
tree | 06a4c1f5d72d0daddb3dbd6200a89e887582b1bf /services | |
parent | 64a67e28f61dae25f04b18efaedc2dad7733da93 (diff) |
Trivial debug message cleanups
Diffstat (limited to 'services')
-rw-r--r-- | services/presence2/server_plugin.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/services/presence2/server_plugin.py b/services/presence2/server_plugin.py index 84aa10b..8d68c3f 100644 --- a/services/presence2/server_plugin.py +++ b/services/presence2/server_plugin.py @@ -378,6 +378,8 @@ class ServerPlugin(gobject.GObject): except dbus.DBusException, e: if str(e).startswith("org.freedesktop.DBus.Error.NoReply"): raise InvalidBuddyError("couldn't get properties") + props = {} + logging.debug("Error getting buddy properties: %s" % e) if not props.has_key('color'): raise InvalidBuddyError("no color") @@ -402,7 +404,9 @@ class ServerPlugin(gobject.GObject): online = handle in self._online_contacts for status, params in statuses.items(): jid = self._conn[CONN_INTERFACE].InspectHandles(CONNECTION_HANDLE_TYPE_CONTACT, [handle])[0] - print "Handle %s (%s) was online=%s. new statuse %s" % (handle, jid, online, status) + olstr = "ONLINE" + if not online: olstr = "OFFLINE" + print "Handle %s (%s) was %s, status now '%s'." % (handle, jid, olstr, status) if not online and status in ["available", "away", "brb", "busy", "dnd", "xa"]: try: self._contact_online(handle) |