diff options
author | Amar Tumballi <amarts@redhat.com> | 2019-06-14 15:00:12 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2019-06-17 03:55:06 +0000 |
commit | 632c10b5e976079d825f8808b5e33ab2e1dda469 (patch) | |
tree | 2cdb19335c183aef8743fd56c25f2a69977fff73 /cli | |
parent | 1cb32e3df2775dabc57df6931ffce96aece7109e (diff) |
cli: don't fail if logging initialize fails
in many cases, gluster's cli can run as non-privileged mode
(like in geo-rep non-root setup). Just because logging fails
in cli, lets not fail the overall process. Not much of
debugging help in CLI logs anyways. Most of the debugging
happens once the call reaches server (glusterd).
Fixes: bz#1535511
Change-Id: I9f07c61b8c3acc95ec08230ff539a35dfd0ff9dc
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'cli')
-rw-r--r-- | cli/src/cli.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c index 4ac7d9e3fb2..d6f2e4a1d42 100644 --- a/cli/src/cli.c +++ b/cli/src/cli.c @@ -223,7 +223,6 @@ logging_init(glusterfs_ctx_t *ctx, struct cli_state *state) /* passing ident as NULL means to use default ident for syslog */ if (gf_log_init(ctx, log_file, NULL) == -1) { fprintf(stderr, "ERROR: failed to open logfile %s\n", log_file); - return -1; } /* CLI should not have something to DEBUG after the release, |