|
|
a60cd7 |
From c6e54a5eaacab21a56c41c4b138e800f6aa15faf Mon Sep 17 00:00:00 2001
|
|
|
a60cd7 |
From: Matej Habrnal <mhabrnal@redhat.com>
|
|
|
a60cd7 |
Date: Tue, 8 Dec 2015 16:33:31 +0100
|
|
|
a60cd7 |
Subject: [PATCH] lib: check_recent_crash_file do not produce error_msg
|
|
|
a60cd7 |
|
|
|
a60cd7 |
Regarding to the desire to unite log messages in abrt-hook-ccpp,
|
|
|
a60cd7 |
we need to erase loging from check_recent_crash_file() function and let the
|
|
|
a60cd7 |
loging on caller of the function.
|
|
|
a60cd7 |
|
|
|
a60cd7 |
Related to rhbz#1337186
|
|
|
a60cd7 |
|
|
|
a60cd7 |
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
|
|
|
a60cd7 |
---
|
|
|
a60cd7 |
src/daemon/abrt-server.c | 3 +++
|
|
|
a60cd7 |
src/lib/check_recent_crash_file.c | 1 -
|
|
|
a60cd7 |
2 files changed, 3 insertions(+), 1 deletion(-)
|
|
|
a60cd7 |
|
|
|
a60cd7 |
diff --git a/src/daemon/abrt-server.c b/src/daemon/abrt-server.c
|
|
|
a60cd7 |
index a0faef6..9a1361b 100644
|
|
|
a60cd7 |
--- a/src/daemon/abrt-server.c
|
|
|
a60cd7 |
+++ b/src/daemon/abrt-server.c
|
|
|
a60cd7 |
@@ -885,7 +885,10 @@ static int perform_http_xact(void)
|
|
|
a60cd7 |
int repeating_crash = check_recent_crash_file(last_file, executable);
|
|
|
a60cd7 |
free(last_file);
|
|
|
a60cd7 |
if (repeating_crash) /* Only pretend that we saved it */
|
|
|
a60cd7 |
+ {
|
|
|
a60cd7 |
+ error_msg("Not saving repeating crash in '%s'", executable);
|
|
|
a60cd7 |
goto out; /* ret is 0: "success" */
|
|
|
a60cd7 |
+ }
|
|
|
a60cd7 |
}
|
|
|
a60cd7 |
|
|
|
a60cd7 |
#if 0
|
|
|
a60cd7 |
diff --git a/src/lib/check_recent_crash_file.c b/src/lib/check_recent_crash_file.c
|
|
|
a60cd7 |
index 63db260..2df6aff 100644
|
|
|
a60cd7 |
--- a/src/lib/check_recent_crash_file.c
|
|
|
a60cd7 |
+++ b/src/lib/check_recent_crash_file.c
|
|
|
a60cd7 |
@@ -44,7 +44,6 @@ int check_recent_crash_file(const char *filename, const char *executable)
|
|
|
a60cd7 |
buf[sz] = '\0';
|
|
|
a60cd7 |
if (strcmp(executable, buf) == 0)
|
|
|
a60cd7 |
{
|
|
|
a60cd7 |
- error_msg("Not saving repeating crash in '%s'", executable);
|
|
|
a60cd7 |
close(fd);
|
|
|
a60cd7 |
return 1;
|
|
|
a60cd7 |
}
|
|
|
a60cd7 |
--
|
|
|
a60cd7 |
1.8.3.1
|
|
|
a60cd7 |
|