summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-06-08 15:03:45 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-06-08 15:03:45 +0200
commit3b6e3f03494e3e279c77b426b6bbb6853ef5a155 (patch)
tree863cdeaf91223b984a473a865d57d4a269288add
parente054ee8cab2145ee58dca97d6e87201e39f60f98 (diff)
downloadabrt-3b6e3f03494e3e279c77b426b6bbb6853ef5a155.tar.gz
abrt-3b6e3f03494e3e279c77b426b6bbb6853ef5a155.tar.xz
abrt-3b6e3f03494e3e279c77b426b6bbb6853ef5a155.zip
Logger reporter: do not store useless info
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--lib/Utils/make_descr.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/lib/Utils/make_descr.cpp b/lib/Utils/make_descr.cpp
index 7db30bc1..cfec3529 100644
--- a/lib/Utils/make_descr.cpp
+++ b/lib/Utils/make_descr.cpp
@@ -69,13 +69,11 @@ static void add_content(bool &was_multiline, string& description, const char *he
}
/* Items we don't want to include */
-static const char *const blacklisted_items_bz[] = {
- FILENAME_TIME ,
+static const char *const blacklisted_items[] = {
FILENAME_ANALYZER ,
FILENAME_COREDUMP ,
FILENAME_DESCRIPTION, /* package description - basically useless */
FILENAME_HOSTNAME ,
- CD_UID ,
CD_UUID ,
CD_INFORMALL ,
CD_DUPHASH ,
@@ -100,7 +98,7 @@ string make_description_bz(const map_crash_data_t& pCrashData)
if (type == CD_TXT)
{
/* Skip items we are not interested in */
- const char *const *bl = blacklisted_items_bz;
+ const char *const *bl = blacklisted_items;
while (*bl)
{
if (itemname == *bl)
@@ -166,6 +164,18 @@ string make_description_logger(const map_crash_data_t& pCrashData)
if (type == CD_TXT
|| type == CD_BIN
) {
+ /* Skip items we are not interested in */
+ const char *const *bl = blacklisted_items;
+ while (*bl)
+ {
+ if (filename == *bl)
+ break;
+ bl++;
+ }
+ if (*bl)
+ continue; /* blacklisted */
+ if (content == "1.\n2.\n3.\n")
+ continue; /* user did not change default "How to reproduce" */
if (content == "1.\n2.\n3.\n")
continue; /* user did not change default "How to reproduce" */