|
|
28bab8 |
From aebf11fd1db8e67e6593305e5aeba1106565a613 Mon Sep 17 00:00:00 2001
|
|
|
28bab8 |
From: Siteshwar Vashisht <svashisht@redhat.com>
|
|
|
28bab8 |
Date: Wed, 15 Jul 2015 12:23:26 +0530
|
|
|
28bab8 |
Subject: [PATCH] don't spit unnecessary debug messages
|
|
|
28bab8 |
|
|
|
28bab8 |
Related: #1243280
|
|
|
28bab8 |
|
|
|
28bab8 |
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
|
28bab8 |
---
|
|
|
28bab8 |
src/lib/dump_dir.c | 6 +++---
|
|
|
28bab8 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
28bab8 |
|
|
|
28bab8 |
diff --git a/src/lib/dump_dir.c b/src/lib/dump_dir.c
|
|
|
28bab8 |
index 796f947..0575f11 100644
|
|
|
28bab8 |
--- a/src/lib/dump_dir.c
|
|
|
28bab8 |
+++ b/src/lib/dump_dir.c
|
|
|
28bab8 |
@@ -299,14 +299,14 @@ static const char *dd_check(struct dump_dir *dd)
|
|
|
28bab8 |
dd->dd_time = parse_time_file_at(dd->dd_fd, FILENAME_TIME);
|
|
|
28bab8 |
if (dd->dd_time < 0)
|
|
|
28bab8 |
{
|
|
|
28bab8 |
- log_warning("Missing file: "FILENAME_TIME);
|
|
|
28bab8 |
+ log_debug("Missing file: "FILENAME_TIME);
|
|
|
28bab8 |
return FILENAME_TIME;
|
|
|
28bab8 |
}
|
|
|
28bab8 |
|
|
|
28bab8 |
dd->dd_type = load_text_file_at(dd->dd_fd, FILENAME_TYPE, DD_LOAD_TEXT_RETURN_NULL_ON_FAILURE);
|
|
|
28bab8 |
if (!dd->dd_type || (strlen(dd->dd_type) == 0))
|
|
|
28bab8 |
{
|
|
|
28bab8 |
- log_warning("Missing or empty file: "FILENAME_TYPE);
|
|
|
28bab8 |
+ log_debug("Missing or empty file: "FILENAME_TYPE);
|
|
|
28bab8 |
return FILENAME_TYPE;
|
|
|
28bab8 |
}
|
|
|
28bab8 |
|
|
|
28bab8 |
@@ -347,7 +347,7 @@ static int dd_lock(struct dump_dir *dd, unsigned sleep_usec, int flags)
|
|
|
28bab8 |
if (missing_file)
|
|
|
28bab8 |
{
|
|
|
28bab8 |
xunlinkat(dd->dd_fd, ".lock", /*only files*/0);
|
|
|
28bab8 |
- log_warning("Unlocked '%s' (no or corrupted '%s' file)", dd->dd_dirname, missing_file);
|
|
|
28bab8 |
+ log_notice("Unlocked '%s' (no or corrupted '%s' file)", dd->dd_dirname, missing_file);
|
|
|
28bab8 |
if (--count == 0 || flags & DD_DONT_WAIT_FOR_LOCK)
|
|
|
28bab8 |
{
|
|
|
28bab8 |
errno = EISDIR; /* "this is an ordinary dir, not dump dir" */
|
|
|
28bab8 |
--
|
|
|
28bab8 |
2.4.3
|
|
|
28bab8 |
|