[evolution] Remove the --debug command-line option.



commit 4be79b7d35280cf81c37b03a929253db82b3b204
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Jan 31 18:09:49 2012 -0500

    Remove the --debug command-line option.
    
    This is a silly and misleading option.  It gives the impression that it
    activates extra debugging output, when really it's precisely the same as
    "evolution &> LOGFILE" and nothing more.

 shell/main.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/shell/main.c b/shell/main.c
index 7681802..c734597 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -114,7 +114,6 @@ static gboolean quit = FALSE;
 
 static gchar *geometry = NULL;
 static gchar *requested_view = NULL;
-static gchar *evolution_debug_log = NULL;
 static gchar **remaining_args;
 
 static void
@@ -325,8 +324,6 @@ static GOptionEntry entries[] = {
 	{ "force-shutdown", '\0', 0, G_OPTION_ARG_NONE, &force_shutdown,
 	  N_("Forcibly shut down Evolution"), NULL },
 #endif
-	{ "debug", '\0', 0, G_OPTION_ARG_STRING, &evolution_debug_log,
-	  N_("Send the debugging output of all components to a file."), "FILE" },
 	{ "disable-eplugin", '\0', 0, G_OPTION_ARG_NONE, &disable_eplugin,
 	  N_("Disable loading of any plugins."), NULL },
 	{ "disable-preview", '\0', 0, G_OPTION_ARG_NONE, &disable_preview,
@@ -616,18 +613,6 @@ main (gint argc,
 		handle_term_signal, NULL, NULL);
 #endif
 
-	if (evolution_debug_log) {
-		gint fd;
-
-		fd = g_open (evolution_debug_log, O_WRONLY | O_CREAT | O_TRUNC, 0600);
-		if (fd != -1) {
-			dup2 (fd, STDOUT_FILENO);
-			dup2 (fd, STDERR_FILENO);
-			close (fd);
-		} else
-			g_warning ("Could not set up debugging output file.");
-	}
-
 	e_passwords_init ();
 
 	gtk_window_set_default_icon_name ("evolution");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]