aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-17 19:25:40 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-17 19:25:40 +0800
commit95a0ab7d884a6500cfba6ff63fea73269faec0da (patch)
tree58d59526bf1e6ea6a44d4d3900514c102bfd50bf
parent52eb24e6e7b012856525f6f09d3c1a941375d383 (diff)
downloadgsoc2013-empathy-95a0ab7d884a6500cfba6ff63fea73269faec0da.tar
gsoc2013-empathy-95a0ab7d884a6500cfba6ff63fea73269faec0da.tar.gz
gsoc2013-empathy-95a0ab7d884a6500cfba6ff63fea73269faec0da.tar.bz2
gsoc2013-empathy-95a0ab7d884a6500cfba6ff63fea73269faec0da.tar.lz
gsoc2013-empathy-95a0ab7d884a6500cfba6ff63fea73269faec0da.tar.xz
gsoc2013-empathy-95a0ab7d884a6500cfba6ff63fea73269faec0da.tar.zst
gsoc2013-empathy-95a0ab7d884a6500cfba6ff63fea73269faec0da.zip
auth-client: implement Debug interface (#645008)
-rw-r--r--src/empathy-auth-client.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/empathy-auth-client.c b/src/empathy-auth-client.c
index e5f35c682..df2003495 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>
@@ -237,6 +239,7 @@ main (int argc,
GOptionContext *context;
GError *error = NULL;
EmpathyAuthFactory *factory;
+ TpDebugSender *debug_sender;
g_thread_init (NULL);
@@ -264,6 +267,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",
@@ -295,6 +304,7 @@ main (int argc,
gtk_main ();
g_object_unref (factory);
+ g_object_unref (debug_sender);
return EXIT_SUCCESS;
}