diff options
author | Cosimo Alfarano <cosimo.alfarano@collabora.co.uk> | 2010-02-18 19:33:28 +0000 |
---|---|---|
committer | Cosimo Alfarano <cosimo.alfarano@collabora.co.uk> | 2010-02-25 15:37:52 +0000 |
commit | 8d884a2f125a1f96256ec2511fd10a0590a77c85 (patch) | |
tree | 0d7461f97b3512f0d81ac5ae0324a3ec9a68d557 /telepathy-logger/observer.c | |
parent | c379854bdc7eb3d7c636253879ee58b37ef21879 (diff) | |
download | telepathy-logger-8d884a2f125a1f96256ec2511fd10a0590a77c85.tar.gz |
Improved debug while called during open channel inspection
Also fixed the code comments
Diffstat (limited to 'telepathy-logger/observer.c')
-rw-r--r-- | telepathy-logger/observer.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/telepathy-logger/observer.c b/telepathy-logger/observer.c index 3cc297c..22b9aac 100644 --- a/telepathy-logger/observer.c +++ b/telepathy-logger/observer.c @@ -162,6 +162,10 @@ tpl_observer_observe_channels (TpSvcClientObserver *self, g_return_if_fail (!TPL_STR_EMPTY (account)); g_return_if_fail (!TPL_STR_EMPTY (connection)); + if (dbus_context == NULL) + DEBUG ("called during open channel inspection, not by the Channel " + "Dispatcher. OK."); + chan_factory = tpl_observer_get_channel_factory (TPL_OBSERVER (self)); /* Check if logging if enabled globally and for the given account_path, @@ -280,9 +284,9 @@ got_tpl_channel_text_ready_cb (GObject *obj, observing_ctx->chan_n -= 1; if (observing_ctx->chan_n == 0) { - /* observer_channels has been called by the Channel Dispatcher */ if (dbus_ctx != NULL) { + /* observer_channels has been called by the Channel Dispatcher */ DEBUG ("Returning from observe channels"); tp_svc_client_observer_return_from_observe_channels (dbus_ctx); } |