diff options
author | Dan Williams <dcbw@redhat.com> | 2007-04-13 20:00:22 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2007-04-13 20:00:22 (GMT) |
commit | 17adb7b58beaecec626a830b14da780ef2cbee1a (patch) | |
tree | 93da75e1f2a7f1d2da0386848fdeaa1d0c5be97d /services | |
parent | cc2d69e3642403f434501b4c1288f1df930deff5 (diff) |
Add some debug output when sharing activities
Diffstat (limited to 'services')
-rw-r--r-- | services/presence/activity.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/presence/activity.py b/services/presence/activity.py index 4b394c8..6a4ee56 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: |