diff options
author | Csaba Henk <csaba@gluster.com> | 2011-07-23 12:16:07 +0200 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-09-12 06:22:32 -0700 |
commit | 32b96d66890a16fd23c8ae065297c7a98097d340 (patch) | |
tree | 353d7116ceb99624318461d19722580f25b4b824 /cli/src/cli.h | |
parent | 3d67836dba4f5a94f33e9ac13b7ebbf01344ac37 (diff) |
cli: add --log-{file,level} options
Apart from diagnostic purposes, it's needed when cli is ran by
unprivileged user who most likely has no write access to the
canonical log file.
Change-Id: Ib9d1a31711966ff1efe2592fbc0a911820cf8ee3
BUG: 3242
Reviewed-on: http://review.gluster.com/95
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'cli/src/cli.h')
-rw-r--r-- | cli/src/cli.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/src/cli.h b/cli/src/cli.h index b8db0bec840..d3e1fc21bfa 100644 --- a/cli/src/cli.h +++ b/cli/src/cli.h @@ -109,6 +109,9 @@ struct cli_state { int remote_port; int mode; int await_connected; + + char *log_file; + gf_loglevel_t log_level; }; struct cli_local { |