summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/wee-debug.c22
-rw-r--r--src/core/wee-log.c6
2 files changed, 11 insertions, 17 deletions
diff --git a/src/core/wee-debug.c b/src/core/wee-debug.c
index 3f1de5551..c8c77799a 100644
--- a/src/core/wee-debug.c
+++ b/src/core/wee-debug.c
@@ -84,15 +84,9 @@ debug_dump (int crash)
log_printf ("");
if (crash)
- {
- log_printf ("****** WeeChat CRASH DUMP ******");
- log_printf ("****** Please send this file to WeeChat developers ******");
- log_printf ("****** and explain when this crash happened ******");
- }
+ log_printf ("****** WeeChat CRASH DUMP ******");
else
- {
- log_printf ("****** WeeChat dump request ******");
- }
+ log_printf ("****** WeeChat dump request ******");
gui_window_print_log ();
gui_buffer_print_log ();
@@ -116,7 +110,7 @@ debug_dump (int crash)
plugin_print_log ();
log_printf ("");
- log_printf ("****** End of WeeChat dump ******");
+ log_printf ("****** End of WeeChat dump ******");
log_printf ("");
}
@@ -164,11 +158,11 @@ debug_sigsegv ()
string_iconv_fprintf (stderr, "***\n");
string_iconv_fprintf (stderr, "*** Please help WeeChat developers to fix this bug:\n");
string_iconv_fprintf (stderr, "*** 1. If you have a core file, please run: gdb /path/to/weechat core\n");
- string_iconv_fprintf (stderr, "*** then issue \"bt\" command and send result to developers\n");
- string_iconv_fprintf (stderr, "*** To enable core files with bash shell: ulimit -c 10000\n");
- string_iconv_fprintf (stderr, "*** 2. Otherwise send backtrace (below) and weechat.log\n");
- string_iconv_fprintf (stderr, "*** (be careful, private info may be in this file since\n");
- string_iconv_fprintf (stderr, "*** part of chats are displayed, so remove lines if needed)\n\n");
+ string_iconv_fprintf (stderr, "*** then issue command: \"bt full\" and send result to developers\n");
+ string_iconv_fprintf (stderr, "*** (see user's guide for more info about report of crashes).\n");
+ string_iconv_fprintf (stderr, "*** 2. Otherwise send backtrace (below), only if it is a complete trace.\n");
+ string_iconv_fprintf (stderr, "*** Keep the crash log file, just in case developers ask you some info\n");
+ string_iconv_fprintf (stderr, "*** (be careful, private info like passwords may be in this file).\n\n");
weechat_backtrace ();
diff --git a/src/core/wee-log.c b/src/core/wee-log.c
index 690220a0e..39c18a55b 100644
--- a/src/core/wee-log.c
+++ b/src/core/wee-log.c
@@ -153,9 +153,7 @@ log_printf (const char *message, ...)
ptr_buffer++;
}
- if (!weechat_log_use_time)
- string_iconv_fprintf (weechat_log_file, "%s\n", vbuffer);
- else
+ if (weechat_log_use_time)
{
seconds = time (NULL);
date_tmp = localtime (&seconds);
@@ -171,6 +169,8 @@ log_printf (const char *message, ...)
else
string_iconv_fprintf (weechat_log_file, "%s\n", vbuffer);
}
+ else
+ string_iconv_fprintf (weechat_log_file, "%s\n", vbuffer);
fflush (weechat_log_file);