diff mbox

multipathd/main.c:change the loglevel from 1/2 to 0

Message ID 1478000346-6928-1-git-send-email-li.minghui7@zte.com.cn (mailing list archive)
State Not Applicable, archived
Delegated to: christophe varoqui
Headers show

Commit Message

li.minghui7@zte.com.cn Nov. 1, 2016, 11:39 a.m. UTC
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 mbox

Patch

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)