r16604 - gnucash/trunk/src/bin - When setting log levels, prefer command line options to log.conf.
Andreas Köhler
andi5 at cvs.gnucash.org
Sun Dec 2 10:13:41 EST 2007
Author: andi5
Date: 2007-12-02 10:13:41 -0500 (Sun, 02 Dec 2007)
New Revision: 16604
Trac: http://svn.gnucash.org/trac/changeset/16604
Modified:
gnucash/trunk/src/bin/gnucash-bin.c
Log:
When setting log levels, prefer command line options to log.conf.
Modified: gnucash/trunk/src/bin/gnucash-bin.c
===================================================================
--- gnucash/trunk/src/bin/gnucash-bin.c 2007-12-02 11:47:35 UTC (rev 16603)
+++ gnucash/trunk/src/bin/gnucash-bin.c 2007-12-02 15:13:41 UTC (rev 16604)
@@ -522,6 +522,14 @@
qof_log_set_level("gnc", QOF_LOG_INFO);
}
+ {
+ gchar *log_config_filename;
+ log_config_filename = gnc_build_dotgnucash_path("log.conf");
+ if (g_file_test(log_config_filename, G_FILE_TEST_EXISTS))
+ qof_log_parse_log_config(log_config_filename);
+ g_free(log_config_filename);
+ }
+
if (log_flags != NULL)
{
int i = 0;
@@ -543,14 +551,6 @@
g_strfreev(parts);
}
}
-
- {
- gchar *log_config_filename;
- log_config_filename = gnc_build_dotgnucash_path("log.conf");
- if (g_file_test(log_config_filename, G_FILE_TEST_EXISTS))
- qof_log_parse_log_config(log_config_filename);
- g_free(log_config_filename);
- }
}
int
More information about the gnucash-changes
mailing list