When setting log levels, prefer command line options to log.conf.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16604 57a11ea4-9604-0410-9ed3-97b8803252fd
2.4
Andreas Köhler 19 years ago
parent a68151082d
commit 44d77bd3a2

@ -522,6 +522,14 @@ gnc_log_init()
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 @@ gnc_log_init()
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

Loading…
Cancel
Save