summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-gfproxyd-svc.c
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2018-04-03 21:28:37 +0530
committerAtin Mukherjee <amukherj@redhat.com>2018-04-03 21:36:38 +0530
commit089351f3d80d37cf2d46f05211191bef5232c12c (patch)
treefb23d7810b113984d0058787dbb9d23999c839e4 /xlators/mgmt/glusterd/src/glusterd-gfproxyd-svc.c
parent277d3058a1b9fdd345b6712d84eb9fd9453dd9d6 (diff)
glusterd: honour localtime-logging for all the daemons
Change-Id: I97a70d29365b0a454241ac5f5cae56d93eefd73a Fixes: bz#1563334 Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-gfproxyd-svc.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-gfproxyd-svc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-gfproxyd-svc.c b/xlators/mgmt/glusterd/src/glusterd-gfproxyd-svc.c
index 4ebc823619d..c0b96b10995 100644
--- a/xlators/mgmt/glusterd/src/glusterd-gfproxyd-svc.c
+++ b/xlators/mgmt/glusterd/src/glusterd-gfproxyd-svc.c
@@ -263,6 +263,7 @@ glusterd_gfproxydsvc_start (glusterd_svc_t *svc, int flags)
char msg[1024] = {0,};
char gfproxyd_id[PATH_MAX] = {0,};
glusterd_volinfo_t *volinfo = NULL;
+ char *localtime_logging = NULL;
this = THIS;
GF_VALIDATE_OR_GOTO ("glusterd", this, out);
@@ -312,6 +313,11 @@ glusterd_gfproxydsvc_start (glusterd_svc_t *svc, int flags)
if (volinfo->memory_accounting)
runner_add_arg (&runner, "--mem-accounting");
+ if (dict_get_str (priv->opts, GLUSTERD_LOCALTIME_LOGGING_KEY,
+ &localtime_logging) == 0) {
+ if (strcmp (localtime_logging, "enable") == 0)
+ runner_add_arg (&runner, "--localtime-logging");
+ }
gfproxyd_port = pmap_assign_port (this, volinfo->gfproxyd.port,
gfproxyd_id);