Mercurial > pidgin
diff finch/gntdebug.c @ 18454:6b623a59cec6
If debug is enabled using the -d argument, then do not suppress the outputs
to stderr. The user would need to redirect the stderr output to some file,
but let's try leaving that upto the user.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 07 Jul 2007 10:54:38 +0000 |
parents | be8c4eba38f6 |
children | 3432d37a4a77 44b4e8bd759b 315151da0dc6 |
line wrap: on
line diff
--- a/finch/gntdebug.c Sat Jul 07 04:03:41 2007 +0000 +++ b/finch/gntdebug.c Sat Jul 07 10:54:38 2007 +0000 @@ -302,7 +302,8 @@ REGISTER_G_LOG_HANDLER("GThread"); g_set_print_handler(print_stderr); /* Redirect the debug messages to stderr */ - g_set_printerr_handler(suppress_error_messages); + if (!purple_debug_is_enabled()) + g_set_printerr_handler(suppress_error_messages); purple_prefs_add_none(PREF_ROOT); purple_prefs_add_string(PREF_ROOT "/filter", "");