From 4e63eafaed6073eab3d87c579e964fa5302f0d63 Mon Sep 17 00:00:00 2001 From: "Bala.FA" Date: Fri, 9 Aug 2013 16:51:11 +0530 Subject: log: set ident to openlog at syslog side, log message is identified by its properties like programname, pid, etc. brick/mount processes need to be identified uniquely as they are different process of gluterfsd/glusterfs. At rsyslog side, log separated by programname/app-name with pid works but bit hard to identify them in long run which process is for what brick/mount. This patch fixes by setting identity string at openlog() which sets programname/app-name as similar to old style log file prefixed by gluster, glusterd, glusterfs or glusterfsd Change-Id: Ia05068943fa67ae1663aaded1444cf84ea648db8 BUG: 928648 Signed-off-by: Bala.FA Reviewed-on: http://review.gluster.org/5541 Reviewed-by: Vijay Bellur Tested-by: Gluster Build System --- xlators/features/changelog/lib/src/gf-changelog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/features/changelog/lib/src/gf-changelog.c') diff --git a/xlators/features/changelog/lib/src/gf-changelog.c b/xlators/features/changelog/lib/src/gf-changelog.c index 4e60bb276..15c6e8414 100644 --- a/xlators/features/changelog/lib/src/gf-changelog.c +++ b/xlators/features/changelog/lib/src/gf-changelog.c @@ -467,7 +467,8 @@ gf_changelog_register (char *brick_path, char *scratch_dir, goto cleanup; } - if (gf_log_init (this->ctx, log_file)) + /* passing ident as NULL means to use default ident for syslog */ + if (gf_log_init (this->ctx, log_file, NULL)) goto cleanup; gf_log_set_loglevel ((log_level == -1) ? GF_LOG_INFO : -- cgit