diff options
author | Mikhail Zabaluev <mikhail.zabaluev@nokia.com> | 2008-04-21 15:27:32 +0000 |
---|---|---|
committer | Mikhail Zabaluev <mikhail.zabaluev@nokia.com> | 2008-04-21 15:27:32 +0000 |
commit | 879ad035b2136e893283ee872d85d842954621c1 (patch) | |
tree | e26e958c82caeb6141501f809941fe5ef4b437be /src | |
parent | 167df14589f90633b8d46f942f77471df44aefbd (diff) |
Simplified log file diversion code on Simon's suggestions
Diffstat (limited to 'src')
-rw-r--r-- | src/debug.c | 9 | ||||
-rw-r--r-- | src/debug.h | 1 | ||||
-rw-r--r-- | src/telepathy-sofiasip.c | 3 |
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, |