diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2007-01-31 06:01:14 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2007-01-31 06:01:14 +0000 |
commit | fcff412ab64bf245ee8955377c442fe5b3c63af1 (patch) | |
tree | 389c1e46db91f6fd709ad400db7f529a34603606 /tshark.c | |
parent | cd5aae8116e57519316bf427d6ef31c25be84f04 (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.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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, |