summaryrefslogtreecommitdiffstats
path: root/glusterfsd
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:53:35 -0700
commitb57e956caaf4536218b3b55ae78b4597858bdfde (patch)
treeb014a8811db9d380b75b7d10cba0267784e0536a /glusterfsd
parent7a153f17b1892ca8747d5b570d80795b4006790a (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/415 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'glusterfsd')
-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 42d3916d9c0..4f8d73d07cd 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -1564,6 +1564,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);