[dm-devel] [PATCH v2 10/20] multipath -C: decrease log level
Martin Wilck
mwilck at suse.com
Sat Jan 13 21:19:28 UTC 2018
Avoid that the positive case ("usable paths found") spams the
syslog on systems with many LUNs.
---
multipath/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/multipath/main.c b/multipath/main.c
index 25162a0e9a7c..52bf1658bbca 100644
--- a/multipath/main.c
+++ b/multipath/main.c
@@ -325,7 +325,8 @@ static int check_usable_paths(struct config *conf,
}
}
found:
- condlog(2, "%s:%s usable paths found", devpath, r == 0 ? "" : " no");
+ condlog(r == 0 ? 3 : 2, "%s:%s usable paths found",
+ devpath, r == 0 ? "" : " no");
free:
FREE(mapname);
free_multipath(mpp, FREE_PATHS);
--
2.15.1
More information about the dm-devel
mailing list