From 1912a7c3980713ccc81e9fd2895873e29dc519a2 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 28 Apr 2011 22:02:46 +0200 Subject: Logger: output "END:" line to delimit appended reports. closes bz#698458 Also changes Bugzilla and abrt-cli output format. Signed-off-by: Denys Vlasenko --- src/plugins/abrt-action-bugzilla.cpp | 4 +++- src/plugins/abrt-action-print.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/abrt-action-bugzilla.cpp b/src/plugins/abrt-action-bugzilla.cpp index d0281ce7..6f551e2c 100644 --- a/src/plugins/abrt-action-bugzilla.cpp +++ b/src/plugins/abrt-action-bugzilla.cpp @@ -530,8 +530,10 @@ int ctx::add_attachments(const char* bug_id_str, problem_data_t *problem_data) { const char *content = value->content; + // We were special-casing FILENAME_BACKTRACE here, but karel says + // he can retrieve it in inlined form from comments too. if ((value->flags & CD_FLAG_TXT) - && (strlen(content) > CD_TEXT_ATT_SIZE || (strcmp(name, FILENAME_BACKTRACE) == 0)) + && (strlen(content) > CD_TEXT_ATT_SIZE /*|| (strcmp(name, FILENAME_BACKTRACE) == 0)*/) ) { char *encoded64 = encode_base64(content, strlen(content)); char *filename = xasprintf("File: %s", name); diff --git a/src/plugins/abrt-action-print.c b/src/plugins/abrt-action-print.c index 1fbdf35a..f76abf86 100644 --- a/src/plugins/abrt-action-print.c +++ b/src/plugins/abrt-action-print.c @@ -81,6 +81,8 @@ int main(int argc, char **argv) char *dsc = make_description_logger(problem_data); fputs(dsc, stdout); + if (open_mode[0] == 'a') + fputs("\nEND:\n\n", stdout); free(dsc); free_problem_data(problem_data); -- cgit