r22425 - gnucash/trunk/src/gnc-module - Don't set the log file in gnc_module_init

Geert Janssens gjanssens at code.gnucash.org
Mon Sep 24 13:06:03 EDT 2012


Author: gjanssens
Date: 2012-09-24 13:06:03 -0400 (Mon, 24 Sep 2012)
New Revision: 22425
Trac: http://svn.gnucash.org/trac/changeset/22425

Modified:
   gnucash/trunk/src/gnc-module/gnc-module.c
Log:
Don't set the log file in gnc_module_init

This should fix the logging to stderr since r22419.
gnc_module_init used to change the log path to stderr.
Presumably this was needed before, as logging used to be initialized
after module initialization. This has now changed, so gnc_module_init
can make use of qoflog settings as chosen by the user (which by default
means logging to gnucash.trace).

Modified: gnucash/trunk/src/gnc-module/gnc-module.c
===================================================================
--- gnucash/trunk/src/gnc-module/gnc-module.c	2012-09-24 16:42:28 UTC (rev 22424)
+++ gnucash/trunk/src/gnc-module/gnc-module.c	2012-09-24 17:06:03 UTC (rev 22425)
@@ -131,7 +131,6 @@
     if (loaded_modules)
         return;
 
-    qof_log_init_filename_special ("stderr");
     loaded_modules = g_hash_table_new(g_direct_hash, g_direct_equal);
 
     /* now crawl the GNC_MODULE_PATH to find likely libraries */



More information about the gnucash-changes mailing list