aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-02-01 07:09:49 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-02-01 07:13:38 +0800
commit4be79b7d35280cf81c37b03a929253db82b3b204 (patch)
tree0147154df24d33d565d58f3bccf0e54973148061
parent669535963bfc5bc6ba2f4b8f38069c9c69d70c61 (diff)
downloadgsoc2013-evolution-4be79b7d35280cf81c37b03a929253db82b3b204.tar
gsoc2013-evolution-4be79b7d35280cf81c37b03a929253db82b3b204.tar.gz
gsoc2013-evolution-4be79b7d35280cf81c37b03a929253db82b3b204.tar.bz2
gsoc2013-evolution-4be79b7d35280cf81c37b03a929253db82b3b204.tar.lz
gsoc2013-evolution-4be79b7d35280cf81c37b03a929253db82b3b204.tar.xz
gsoc2013-evolution-4be79b7d35280cf81c37b03a929253db82b3b204.tar.zst
gsoc2013-evolution-4be79b7d35280cf81c37b03a929253db82b3b204.zip
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.
-rw-r--r--shell/main.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/shell/main.c b/shell/main.c
index 768180234c..c7345979ff 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");