Mercurial > pidgin.yaz
changeset 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 | 45865fb3f4f9 |
children | c34981ad802a |
files | finch/gntdebug.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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", "");