[empathy/gnome-2-34] auth-client: implement Debug interface (#645008)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-34] auth-client: implement Debug interface (#645008)
- Date: Thu, 17 Mar 2011 11:31:14 +0000 (UTC)
commit da856bbdcf471c120de701822e9befb5ffe7283b
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Mar 17 12:25:40 2011 +0100
auth-client: implement Debug interface (#645008)
src/empathy-auth-client.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-auth-client.c b/src/empathy-auth-client.c
index 98a736f..907c349 100644
--- a/src/empathy-auth-client.c
+++ b/src/empathy-auth-client.c
@@ -26,6 +26,8 @@
#include <glib/gi18n.h>
#include <gtk/gtk.h>
+#include <telepathy-glib/debug-sender.h>
+
#define DEBUG_FLAG EMPATHY_DEBUG_TLS
#include <libempathy/empathy-debug.h>
#include <libempathy/empathy-auth-factory.h>
@@ -231,6 +233,7 @@ main (int argc,
GOptionContext *context;
GError *error = NULL;
EmpathyAuthFactory *factory;
+ TpDebugSender *debug_sender;
g_thread_init (NULL);
@@ -255,6 +258,12 @@ main (int argc,
gtk_window_set_default_icon_name ("empathy");
textdomain (GETTEXT_PACKAGE);
+#ifdef ENABLE_DEBUG
+ /* Set up debug sender */
+ debug_sender = tp_debug_sender_dup ();
+ g_log_set_default_handler (tp_debug_sender_log_handler, G_LOG_DOMAIN);
+#endif
+
factory = empathy_auth_factory_dup_singleton ();
g_signal_connect (factory, "new-server-tls-handler",
@@ -286,6 +295,7 @@ main (int argc,
gtk_main ();
g_object_unref (factory);
+ g_object_unref (debug_sender);
return EXIT_SUCCESS;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]