From 8d41243f18c4a9c89028c8fc5e54b7e2b5e4309d Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Wed, 10 Feb 2016 18:27:38 -0500 Subject: logging: Change log file name for glusterd log file names are based on: a. user provided input (through -l switch while starting a gluster process) b. mount point paths in the case of native clients c. volume/configuration files used for starting a gluster process d. volume server used for starting a gluster process Currently glusterd uses scheme c. to have a log file name that reads as INSTALL_PREFIX-etc-glusterfs-glusterd.log Since glusterd has a well known configuration file, it does not make much sense to have log file name based on scheme c. This patch changes the name of glusterd's log file to "glusterd.log". Hopefully this enables users to identify glusterd's log file more easily. Change-Id: I2d04179c4b9b06271b50eeee3909ee259e8cf547 BUG: 1348944 Signed-off-by: Vijay Bellur Reviewed-on: http://review.gluster.org/13426 Tested-by: Atin Mukherjee Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Atin Mukherjee --- glusterfsd/src/glusterfsd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'glusterfsd/src') diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index 540451c059e..7c07e3d0bfb 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -75,10 +75,6 @@ #include "daemon.h" #include "tw.h" -/* process mode definitions */ -#define GF_SERVER_PROCESS 0 -#define GF_CLIENT_PROCESS 1 -#define GF_GLUSTERD_PROCESS 2 /* using argp for command line parsing */ static char gf_doc[] = ""; @@ -1561,7 +1557,7 @@ logging_init (glusterfs_ctx_t *ctx, const char *progpath) cmd_args = &ctx->cmd_args; if (cmd_args->log_file == NULL) { - ret = gf_set_log_file_path (cmd_args); + ret = gf_set_log_file_path (cmd_args, ctx); if (ret == -1) { fprintf (stderr, "ERROR: failed to set the log file " "path\n"); -- cgit