[empathy] improve SASL debug output
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] improve SASL debug output
- Date: Wed, 8 Aug 2012 10:05:26 +0000 (UTC)
commit 8ad196691413c2b40c525ad3a7335495b7102de3
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Aug 8 12:05:06 2012 +0200
improve SASL debug output
libempathy/empathy-sasl-mechanisms.c | 4 ++++
libempathy/empathy-uoa-auth-handler.c | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-sasl-mechanisms.c b/libempathy/empathy-sasl-mechanisms.c
index 78bb59b..316e31b 100644
--- a/libempathy/empathy-sasl-mechanisms.c
+++ b/libempathy/empathy-sasl-mechanisms.c
@@ -84,11 +84,15 @@ sasl_status_changed_cb (TpChannel *channel,
tp_proxy_dbus_error_to_gerror (channel, dbus_error,
tp_asv_get_string (details, "debug-message"), &error);
+ DEBUG ("SASL failed: %s", error->message);
+
g_simple_async_result_take_error (result, error);
}
break;
case TP_SASL_STATUS_SUCCEEDED:
+ DEBUG ("SASL succeeded");
+
g_simple_async_result_complete (result);
break;
diff --git a/libempathy/empathy-uoa-auth-handler.c b/libempathy/empathy-uoa-auth-handler.c
index 1bfd6e1..31c1e64 100644
--- a/libempathy/empathy-uoa-auth-handler.c
+++ b/libempathy/empathy-uoa-auth-handler.c
@@ -93,6 +93,8 @@ auth_cb (GObject *source,
g_clear_error (&error);
}
+ DEBUG ("Auth on %s suceeded", tp_proxy_get_object_path (channel));
+
tp_channel_close_async (channel, NULL, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]