From fcff412ab64bf245ee8955377c442fe5b3c63af1 Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Wed, 31 Jan 2007 06:01:14 +0000 Subject: [PATCH] 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 --- tshark.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tshark.c b/tshark.c index 932a51130b..fcd661ddde 100644 --- a/tshark.c +++ b/tshark.c @@ -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,