summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-09-14 15:59:21 +0530
committerVijay Bellur <vijay@gluster.com>2011-09-14 03:52:51 -0700
commitd032339e6b063b370c7d6b7f4db031f459e2dfb1 (patch)
tree002a2375ffc5f174c9a1db361277d3cb6461a5e4
parent22e30847d3657a60700a9dbfd9467e2dfd5efd89 (diff)
glusterfsd: log the package version just after log init
helps getting output of 'glusterfs --version' from the users while debugging any issues/bugs. Change-Id: I4f15aca143c1e403c70409378afc9ed7a678b286 BUG: 2346 Reviewed-on: http://review.gluster.com/417 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r--glusterfsd/src/glusterfsd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 49f81d9f1b5..5b42c22f5d3 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -1438,6 +1438,11 @@ main (int argc, char *argv[])
if (ret)
goto out;
+ /* log the version of glusterfs running here */
+ gf_log (argv[0], GF_LOG_INFO,
+ "Started Running %s version %s",
+ argv[0], PACKAGE_VERSION);
+
gf_proc_dump_init();
ret = create_fuse_mount (ctx);