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-15 22:14:34 -0700
commit8a4ec7be9b696959b701087bdffd1c6ad7393673 (patch)
tree3c81d41ca4b525c26abb577183d85780ebdf6825 /glusterfsd
parent5e3699ea32ebc491b406508b878ea650f5dfc7c0 (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/416 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Shishir Gowda <shishirng@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 057f8909b91..31bc43cdbf1 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -1487,6 +1487,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);