Blame SOURCES/0151-don-t-spit-unnecessary-debug-messages.patch

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