From 52d0ae7bc35680bcec094be39f119d966ea9a77f Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Thu, 2 Jul 2009 07:08:47 +0000 Subject: Print volume file after printing other details. This makes the log format compatible with earlier versions. Fixes bug #105. Signed-off-by: Anand V. Avati --- glusterfsd/src/glusterfsd.c | 4 +++- libglusterfs/src/spec.y | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index 4ee7689bf..d8c693ff4 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -1229,7 +1229,9 @@ main (int argc, char *argv[]) _gf_dump_details (argc, argv); } - + + gf_log_volume_file (ctx->specfp); + gf_log ("glusterfs", GF_LOG_DEBUG, "running in pid %d", getpid ()); diff --git a/libglusterfs/src/spec.y b/libglusterfs/src/spec.y index b4cd9c96a..f1cffe5d9 100644 --- a/libglusterfs/src/spec.y +++ b/libglusterfs/src/spec.y @@ -583,7 +583,7 @@ file_to_xlator_tree (glusterfs_ctx_t *ctx, FREE (buffer); return NULL; } - gf_log_volume_file (tmp_file); + gctx = ctx; yyin = tmp_file; ret = yyparse (); -- cgit