From 8d884a2f125a1f96256ec2511fd10a0590a77c85 Mon Sep 17 00:00:00 2001 From: Cosimo Alfarano Date: Thu, 18 Feb 2010 19:33:28 +0000 Subject: Improved debug while called during open channel inspection Also fixed the code comments --- telepathy-logger/observer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'telepathy-logger/observer.c') 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); } -- cgit v1.2.1