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

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