diff options
Diffstat (limited to 'src')
-rw-r--r-- | 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 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; } |