summaryrefslogtreecommitdiff
path: root/src/telepathy-rakia.c
diff options
context:
space:
mode:
authorMikhail Zabaluev <mikhail.zabaluev@nokia.com>2011-03-04 20:18:20 +0200
committerMikhail Zabaluev <mikhail.zabaluev@nokia.com>2011-03-04 20:18:20 +0200
commitc97757937ad35bbfa4104b37082965b87a1e27c1 (patch)
tree52b2526633ff7c3afaa082b2a63ecba759dd1dc0 /src/telepathy-rakia.c
parent5d568b09068ee1705ed1e35f12044f97e5a1ee85 (diff)
Moving log init/shutdown back to the connection manager lifecycle
Doing the TpDebugSender business outside of the mainloop may not be such a bright idea.
Diffstat (limited to 'src/telepathy-rakia.c')
-rw-r--r--src/telepathy-rakia.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/telepathy-rakia.c b/src/telepathy-rakia.c
index e0f3870..4ed4906 100644
--- a/src/telepathy-rakia.c
+++ b/src/telepathy-rakia.c
@@ -31,10 +31,6 @@
#include "sip-connection-manager.h"
#include <telepathy-glib/run.h>
#include <telepathy-glib/debug.h>
-#include <telepathy-glib/debug-sender.h>
-
-#include <rakia/sofia-decls.h>
-#include <sofia-sip/su_log.h>
static TpBaseConnectionManager *
construct_cm (void)
@@ -48,7 +44,6 @@ int
main (int argc, char** argv)
{
int status;
- TpDebugSender *debug_sender;
guint fatal_mask;
fatal_mask = g_log_set_always_fatal (G_LOG_FATAL_MASK);
@@ -66,17 +61,8 @@ main (int argc, char** argv)
tp_debug_divert_messages (g_getenv ("TPSIP_LOGFILE"));
- debug_sender = tp_debug_sender_dup ();
- g_log_set_default_handler (tp_debug_sender_log_handler, G_LOG_DOMAIN);
-
- su_log_redirect (NULL, rakia_sofia_log_handler, NULL);
-
status = tp_run_connection_manager ("telepathy-rakia", VERSION,
construct_cm, argc, argv);
- rakia_debug_free ();
-
- g_object_unref (debug_sender);
-
return status;
}