From 101858ca54e6cba44cde2baf4ceac4a4b339885b Mon Sep 17 00:00:00 2001 From: Venkatesh Somyajulu Date: Fri, 12 Oct 2012 18:07:04 +0530 Subject: protocol/client: Conditional logging in client3_3_unlink_cbk Change-Id: I4af398362cdb3f99782dcd3728988e4cf1fbb479 BUG: 861925 Signed-off-by: Venkatesh Somyajulu Reviewed-on: http://review.gluster.org/4069 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/protocol/client/src/client-rpc-fops.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xlators/protocol/client/src/client-rpc-fops.c b/xlators/protocol/client/src/client-rpc-fops.c index d541c35ebf3..d5114e0734e 100644 --- a/xlators/protocol/client/src/client-rpc-fops.c +++ b/xlators/protocol/client/src/client-rpc-fops.c @@ -636,9 +636,13 @@ client3_3_unlink_cbk (struct rpc_req *req, struct iovec *iov, int count, out: if (rsp.op_ret == -1) { - gf_log (this->name, GF_LOG_WARNING, "remote operation failed: %s", + gf_log (this->name, + ((gf_error_to_errno (rsp.op_errno) == ENOENT) + ? GF_LOG_DEBUG : GF_LOG_WARNING), + "remote operation failed: %s", strerror (gf_error_to_errno (rsp.op_errno))); } + CLIENT_STACK_UNWIND (unlink, frame, rsp.op_ret, gf_error_to_errno (rsp.op_errno), &preparent, &postparent, xdata); -- cgit