Blame SOURCES/0271-lib-dump_dir-Restore-log-level.patch

b12e4c
From c281744edac0b6167ffced1c6d32b662fdbcac00 Mon Sep 17 00:00:00 2001
b12e4c
From: Ernestas Kulik <ekulik@redhat.com>
b12e4c
Date: Wed, 14 Aug 2019 09:20:09 +0200
b12e4c
Subject: [PATCH] lib: dump_dir: Restore log level
b12e4c
b12e4c
d4b89774005c569d7fd576d0d0efa6b3dc877a4f changed the log level of one
b12e4c
message from NOTICE to WARNING, which ends up being rather spammy and
b12e4c
making meaningful-logs fail.
b12e4c
b12e4c
Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
b12e4c
---
b12e4c
 src/lib/dump_dir.c | 2 +-
b12e4c
 1 file changed, 1 insertion(+), 1 deletion(-)
b12e4c
b12e4c
diff --git a/src/lib/dump_dir.c b/src/lib/dump_dir.c
b12e4c
index 0da96cd..4bdfa5d 100644
b12e4c
--- a/src/lib/dump_dir.c
b12e4c
+++ b/src/lib/dump_dir.c
b12e4c
@@ -392,7 +392,7 @@ static int dd_lock(struct dump_dir *dd, unsigned sleep_usec, int flags)
b12e4c
             if (dd->owns_lock)
b12e4c
                 xunlinkat(dd->dd_fd, ".lock", /*only files*/0);
b12e4c
 
b12e4c
-            log_warning("Unlocked '%s/.lock' (no or corrupted '%s' file)", dd->dd_dirname, missing_file);
b12e4c
+            log_notice("Unlocked '%s/.lock' (no or corrupted '%s' file)", dd->dd_dirname, missing_file);
b12e4c
             if (--count == 0 || flags & DD_DONT_WAIT_FOR_LOCK)
b12e4c
             {
b12e4c
                 errno = EISDIR; /* "this is an ordinary dir, not dump dir" */
b12e4c
-- 
b12e4c
2.21.0
b12e4c