forked from osmocom/wireshark
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:
parent
cd5aae8116
commit
fcff412ab6
5
tshark.c
5
tshark.c
|
@ -750,13 +750,10 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
/* nothing more than the standard GLib handler, but without a warning */
|
/* nothing more than the standard GLib handler, but without a warning */
|
||||||
log_flags =
|
log_flags =
|
||||||
G_LOG_LEVEL_ERROR|
|
|
||||||
G_LOG_LEVEL_CRITICAL|
|
|
||||||
G_LOG_LEVEL_WARNING|
|
G_LOG_LEVEL_WARNING|
|
||||||
G_LOG_LEVEL_MESSAGE|
|
G_LOG_LEVEL_MESSAGE|
|
||||||
G_LOG_LEVEL_INFO|
|
G_LOG_LEVEL_INFO|
|
||||||
G_LOG_LEVEL_DEBUG|
|
G_LOG_LEVEL_DEBUG;
|
||||||
G_LOG_FLAG_FATAL|G_LOG_FLAG_RECURSION;
|
|
||||||
|
|
||||||
g_log_set_handler(NULL,
|
g_log_set_handler(NULL,
|
||||||
log_flags,
|
log_flags,
|
||||||
|
|
Loading…
Reference in New Issue