aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2007-01-31 06:01:14 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2007-01-31 06:01:14 +0000
commitfcff412ab64bf245ee8955377c442fe5b3c63af1 (patch)
tree389c1e46db91f6fd709ad400db7f529a34603606 /tshark.c
parentcd5aae8116e57519316bf427d6ef31c25be84f04 (diff)
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
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c5
1 files changed, 1 insertions, 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,