[Sheepdog] [PATCH 2/6] collie: initialize logger first

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue May 4 21:20:06 CEST 2010


We cannot log anything until initializing logger, so we should
do it first.

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

diff --git a/collie/collie.c b/collie/collie.c
index 8c31ff6..81dfb05 100644
--- a/collie/collie.c
+++ b/collie/collie.c
@@ -98,11 +98,11 @@ int main(int argc, char **argv)
 
 	srandom(port);
 
-	ret = init_store(dir);
+	ret = log_init(program_name, LOG_SPACE_SIZE, is_daemon, log_level, path);
 	if (ret)
 		exit(1);
 
-	ret = log_init(program_name, LOG_SPACE_SIZE, is_daemon, log_level, path);
+	ret = init_store(dir);
 	if (ret)
 		exit(1);
 
-- 
1.5.6.5




More information about the sheepdog mailing list