[cheese] remove log handler and bugreport script



commit d553c0c2da67cf809b879b159ae1b9b634524e7f
Author: daniel g. siegel <dgsiegel gnome org>
Date:   Mon Aug 9 01:44:42 2010 +0200

    remove log handler and bugreport script
    
    as most of the debug output is done with GST_* or with
    debug() and message(), the log file is useless and therefore
    the bugreport script which is collection that file too.

 data/Makefile.am          |    6 +-----
 data/cheese-bugreport.sh  |    4 ----
 data/cheese.desktop.in.in |    1 -
 src/cheese-main.vala      |   15 ---------------
 4 files changed, 1 insertions(+), 25 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index dc277b6..45deae0 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -34,11 +34,7 @@ EXTRA_DIST = \
 	$(schema_in_files) \
 	$(service_in_files) \
 	$(pkgdata_DATA) \
-	$(gtkrc_DATA) \
-	$(bugreport_SCRIPTS)
-
-bugreportdir      = $(libexecdir)/cheese
-bugreport_SCRIPTS = cheese-bugreport.sh
+	$(gtkrc_DATA)
 
 if GCONF_SCHEMAS_INSTALL
 install-data-local:
diff --git a/data/cheese.desktop.in.in b/data/cheese.desktop.in.in
index 0a9ad2c..4b443b7 100644
--- a/data/cheese.desktop.in.in
+++ b/data/cheese.desktop.in.in
@@ -12,4 +12,3 @@ X-GNOME-Bugzilla-Bugzilla=GNOME
 X-GNOME-Bugzilla-Product=cheese
 X-GNOME-Bugzilla-Component=general
 X-GNOME-Bugzilla-Version= VERSION@
-X-GNOME-Bugzilla-ExtraInfoScript= FULL_LIBEXECDIR@/cheese/cheese-bugreport.sh
diff --git a/src/cheese-main.vala b/src/cheese-main.vala
index 7df17c8..7a221ec 100644
--- a/src/cheese-main.vala
+++ b/src/cheese-main.vala
@@ -31,7 +31,6 @@ public class Cheese.Main
   static bool       wide;
   static string     device;
   static bool       version;
-  static FileStream log_file;
 
   static Cheese.MainWindow main_window;
 
@@ -43,15 +42,6 @@ public class Cheese.Main
     { null}
   };
 
-  static void print_handler (string text)
-  {
-    log_file.puts (text);
-    if (verbose)
-    {
-      stdout.puts (text);
-    }
-  }
-
   public static Unique.Response unique_message_received (int                command,
                                                          Unique.MessageData msg,
                                                          uint               time)
@@ -115,11 +105,6 @@ public class Cheese.Main
     Environment.set_application_name (_("Cheese"));
     Window.set_default_icon_name ("cheese");
 
-    string log_file_dir = GLib.Path.build_filename (Environment.get_home_dir (), ".config", "cheese");
-    DirUtils.create_with_parents (log_file_dir, 0775);
-    log_file = FileStream.open (GLib.Path.build_filename (log_file_dir, "cheese.log"), "w");
-    set_print_handler (print_handler);
-
     Gtk.IconTheme.get_default ().append_search_path (GLib.Path.build_filename (Config.PACKAGE_DATADIR, "icons"));
 
     main_window.setup_ui ();



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