All of lore.kernel.org
 help / color / mirror / Atom feed
From: li.minghui7@zte.com.cn
To: Christophe Varoqui <christophe.varoqui@opensvc.com>
Cc: zhang.kai16@zte.com.cn, "li.minghui" <li.minghui7@zte.com.cn>,
	dm-devel@redhat.com
Subject: [PATCH] multipathd/main.c:change the loglevel from 1/2 to 0
Date: Tue, 1 Nov 2016 19:39:06 +0800	[thread overview]
Message-ID: <1478000346-6928-1-git-send-email-li.minghui7@zte.com.cn> (raw)

From: "li.minghui" <li.minghui7@zte.com.cn>

In fucntion child(),before the execution of the function load_config() and
rcu_assign_pointer(), we need to adjust the log level to 0. otherwise ,the log
will not be logged because the variable conf->verbosity is not assigned then.
---
 multipathd/main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/multipathd/main.c b/multipathd/main.c
index 03c2dd9..3d5a077 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -2228,7 +2228,7 @@ child (void * param)
 	}
 	pid_fd = pidfile_create(DEFAULT_PIDFILE, daemon_pid);
 	if (pid_fd < 0) {
-		condlog(1, "failed to create pidfile");
+		condlog(0, "failed to create pidfile");
 		if (logsink == 1)
 			log_thread_stop();
 		exit(1);
@@ -2236,8 +2236,8 @@ child (void * param)
 
 	post_config_state(DAEMON_START);
 
-	condlog(2, "--------start up--------");
-	condlog(2, "read " DEFAULT_CONFIGFILE);
+	condlog(0, "--------start up--------");
+	condlog(0, "read " DEFAULT_CONFIGFILE);
 
 	conf = load_config(DEFAULT_CONFIGFILE);
 	if (!conf)
-- 
2.8.1.windows.1

                 reply	other threads:[~2016-11-01 11:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1478000346-6928-1-git-send-email-li.minghui7@zte.com.cn \
    --to=li.minghui7@zte.com.cn \
    --cc=christophe.varoqui@opensvc.com \
    --cc=dm-devel@redhat.com \
    --cc=zhang.kai16@zte.com.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.