summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2011-04-12 22:40:14 +0000
committerAnand Avati <avati@gluster.com>2011-04-13 00:39:07 -0700
commit4e928f1d9a9cbbf18d3df3481f1d985f12a9c5ba (patch)
treeb74716a976f1faaa2983f689a99623f7bf624ed7 /xlators/mgmt
parentbc16a1e999648ba58f863d26281c152fb477174a (diff)
mgmt/glusterd: log stats commands to cmd log
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2735 (log stats commands (top/profile) to cmd log) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2735
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index eb3e32d44b8..3ebe5f51f42 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -3143,7 +3143,12 @@ glusterd_handle_cli_profile_volume (rpcsvc_request_t *req)
dict_copy (tmp_dict, dict);
+ gf_cmd_log ("Volume stats", "volume : %s, op: %d", cli_req.volname,
+ cli_req.op);
ret = glusterd_op_begin (req, cli_op, dict, _gf_true);
+ gf_cmd_log ("Volume stats", " on volume %s, op: %d %s ",
+ cli_req.volname, cli_req.op,
+ ((ret == 0)? " SUCCEDED":" FAILED"));
out:
glusterd_friend_sm ();