aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-logs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-logs.c')
-rw-r--r--src/empathy-logs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/empathy-logs.c b/src/empathy-logs.c
index 3763ab279..f49207ebf 100644
--- a/src/empathy-logs.c
+++ b/src/empathy-logs.c
@@ -28,6 +28,7 @@
#include <glib.h>
#include <gtk/gtk.h>
+#include <libempathy/empathy-debug.h>
#include <libempathy-gtk/empathy-log-window.h>
static void
@@ -44,6 +45,12 @@ main (int argc, char *argv[])
gtk_init (&argc, &argv);
+ if (g_getenv ("EMPATHY_TIMING") != NULL) {
+ g_log_set_default_handler (tp_debug_timestamped_log_handler, NULL);
+ }
+ empathy_debug_set_flags (g_getenv ("EMPATHY_DEBUG"));
+ tp_debug_divert_messages (g_getenv ("EMPATHY_LOGFILE"));
+
gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
PKGDATADIR G_DIR_SEPARATOR_S "icons");
window = empathy_log_window_show (NULL, NULL, FALSE, NULL);