From: Martin Wilck Subject: [PATCH v2 10/20] multipath -C: decrease log level Date: Sat, 13 Jan 2018 22:19:28 +0100 Message-ID: <20180113211938.31552-11-mwilck@suse.com> References: <20180113211938.31552-1-mwilck@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20180113211938.31552-1-mwilck@suse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Christophe Varoqui , dm-devel@redhat.com, Xose Vazquez Perez Cc: Martin Wilck List-Id: dm-devel.ids 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