diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-04-13 18:34:18 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-04-13 18:38:27 +0530 |
commit | 310f79118b87bb77adb2cf40a4097bb687fa5392 (patch) | |
tree | 5eeb70d122e60d6d39a45aa918ffdca21d3f7330 /rpc | |
parent | 5d3d0bc59c1115117e6e624d12227d53a474b2ec (diff) |
logging: redirect configshell logs to GB_LOGDIR
currently,
GLOBAL CONFIG GROUP
===================
[...]
logfile=hello
-------------
Logfile to use.
[...]
i.e. configshell logs are collected at 'hello' file.
This patch will redirect configshell logs to
'GB_LOGDIR/gluster-block-configshell.log'
Change-Id: I487c6197578c24412fbec72cb8c354725614de59
Fixes: #13
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/block_svc_routines.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rpc/block_svc_routines.c b/rpc/block_svc_routines.c index 13a1132..6a4bced 100644 --- a/rpc/block_svc_routines.c +++ b/rpc/block_svc_routines.c @@ -28,7 +28,9 @@ # define GB_TGCLI_GLFS_CHECK GB_TGCLI_GLFS " ls > " DEVNULLPATH # define GB_TGCLI_CHECK GB_TGCLI_GLFS " ls | grep ' %s ' > " DEVNULLPATH # define GB_TGCLI_ISCSI "targetcli /iscsi" -# define GB_TGCLI_GLOBALS "targetcli set global auto_add_default_portal=false > " DEVNULLPATH +# define GB_TGCLI_GLOBALS "targetcli set " \ + "global auto_add_default_portal=false " \ + "logfile=" CONFIGSHELL_LOG_FILE " > " DEVNULLPATH # define GB_TGCLI_SAVE "targetcli / saveconfig > " DEVNULLPATH # define GB_TGCLI_ATTRIBUTES "generate_node_acls=1 demo_mode_write_protect=0 > " DEVNULLPATH # define GB_TGCLI_IQN_PREFIX "iqn.2016-12.org.gluster-block:" |