From 17adb7b58beaecec626a830b14da780ef2cbee1a Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 13 Apr 2007 16:00:22 -0400 Subject: [PATCH] Add some debug output when sharing activities --- services/presence/activity.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/presence/activity.py b/services/presence/activity.py index 4b394c88..6a4ee568 100644 --- a/services/presence/activity.py +++ b/services/presence/activity.py @@ -233,18 +233,22 @@ class Activity(DBusGObject): self._tp.disconnect(sigid) if exc: + logging.debug("Share of activity %s failed: %s" % (self._id, exc)) async_err_cb(exc) else: self._handle_share_join(tp, text_channel) self.send_properties() async_cb(dbus.ObjectPath(self._object_path)) + logging.debug("Share of activity %s succeeded." % self._id) def _share(self, (async_cb, async_err_cb)): + logging.debug("Starting share of activity %s" % self._id) if self._joined: async_err_cb(RuntimeError("Already shared activity %s" % self.props.id)) return sigid = self._tp.connect('activity-shared', self._shared_cb) self._tp.share_activity(self.props.id, (sigid, async_cb, async_err_cb)) + logging.debug("done with share attempt %s" % self._id) def _joined_cb(self, tp, activity_id, text_channel, exc, userdata): if activity_id != self.props.id: