[Sheepdog] [PATCH] logger: initialize log_level

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Aug 9 15:52:00 CEST 2011


It seems that we lost log messages which were printed before we call
log_init().

Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 lib/logger.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/logger.c b/lib/logger.c
index 247a7db..15699f0 100644
--- a/lib/logger.c
+++ b/lib/logger.c
@@ -45,7 +45,7 @@ static void dolog(int prio, const char *func, int line, const char *fmt,
 
 static struct logarea *la;
 static char *log_name;
-static int log_level;
+static int log_level = LOG_INFO;
 static pid_t pid;
 static key_t semkey;
 
-- 
1.7.2.5




More information about the sheepdog mailing list