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

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