summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/debug.c9
-rw-r--r--src/debug.h1
-rw-r--r--src/telepathy-sofiasip.c3
3 files changed, 2 insertions, 11 deletions
diff --git a/src/debug.c b/src/debug.c
index 5282233..034f77b 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -79,13 +79,4 @@ void tpsip_debug (TpsipDebugFlags flag,
}
}
-void
-tpsip_debug_setup_logfile (void)
-{
- const gchar *logfile_name;
- logfile_name = g_getenv ("TPSIP_LOGFILE");
- if (logfile_name != NULL)
- tp_debug_divert_messages (logfile_name);
-}
-
#endif /* ENABLE_DEBUG */
diff --git a/src/debug.h b/src/debug.h
index 6fa2987..f68decf 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -41,7 +41,6 @@ void tpsip_debug_set_flags (TpsipDebugFlags flags);
gboolean tpsip_debug_flag_is_set (TpsipDebugFlags flag);
void tpsip_debug (TpsipDebugFlags flag, const gchar *format, ...)
G_GNUC_PRINTF (2, 3);
-void tpsip_debug_setup_logfile (void);
G_END_DECLS
diff --git a/src/telepathy-sofiasip.c b/src/telepathy-sofiasip.c
index 1b77880..757aa43 100644
--- a/src/telepathy-sofiasip.c
+++ b/src/telepathy-sofiasip.c
@@ -140,7 +140,6 @@ main (int argc, char** argv)
#ifdef ENABLE_DEBUG
tpsip_debug_set_flags_from_env ();
- tpsip_debug_setup_logfile ();
if (g_getenv ("TPSIP_PERSIST") || g_getenv ("SOFIASIP_PERSIST"))
{
@@ -148,6 +147,8 @@ main (int argc, char** argv)
}
#endif
+ tp_debug_divert_messages (g_getenv ("TPSIP_LOGFILE"));
+
logdata = sofia_log_init ();
status = tp_run_connection_manager ("telepathy-sofiasip", VERSION,