Patchwork [BUG:2735] mgmt/glusterd: log stats commands to cmd log

login
register
Submitter Pranith K
Date 2011-04-13 04:10:14
Message ID <1302667814-6255-1-git-send-email-pranithk@gluster.com>
Download mbox | patch
Permalink /patch/6837/
State Accepted
Headers show

Comments

Pranith K - 2011-04-13 04:10:14
From: Pranith Kumar K <pranithk@gluster.com>


Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
---
 xlators/mgmt/glusterd/src/glusterd-handler.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch

diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index eb3e32d..3ebe5f5 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 ();