From 32b96d66890a16fd23c8ae065297c7a98097d340 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Sat, 23 Jul 2011 12:16:07 +0200 Subject: 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 Reviewed-by: Vijay Bellur --- cli/src/cli.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli/src/cli.h') diff --git a/cli/src/cli.h b/cli/src/cli.h index b8db0bec..d3e1fc21 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 { -- cgit