Don't send G_LOG_LEVEL_ERROR|G_LOG_LEVEL_CRITICAL|G_LOG_FLAG_FATAL|G_LOG_FLAG_RECURSION to log_func_ignore() so that error messages from g_assert() get printed (by glib's default handler). Without this change developers only get a message saying the program aborted and maybe (if they're lucky^H^H^H^H^Hconfigured correctly) a core file. The latter would allow them to find out what went wrong but it would be much easier to just see the error message.

svn path=/trunk/; revision=20647
This commit is contained in:
Jeff Morriss 2007-01-31 06:01:14 +00:00
parent cd5aae8116
commit fcff412ab6
1 changed files with 1 additions and 4 deletions

View File

@ -750,13 +750,10 @@ main(int argc, char *argv[])
/* nothing more than the standard GLib handler, but without a warning */
log_flags =
G_LOG_LEVEL_ERROR|
G_LOG_LEVEL_CRITICAL|
G_LOG_LEVEL_WARNING|
G_LOG_LEVEL_MESSAGE|
G_LOG_LEVEL_INFO|
G_LOG_LEVEL_DEBUG|
G_LOG_FLAG_FATAL|G_LOG_FLAG_RECURSION;
G_LOG_LEVEL_DEBUG;
g_log_set_handler(NULL,
log_flags,