[empathy] auth-client: implement Debug interface (#645008)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] auth-client: implement Debug interface (#645008)
- Date: Thu, 17 Mar 2011 11:29:46 +0000 (UTC)
commit 95a0ab7d884a6500cfba6ff63fea73269faec0da
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 e5f35c6..df20034 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]