protocol/client: Log ENOENT and ENODATA messages to debug.
Change-Id: I6f8ccf1650ff74e46e5a93a6701d4e694118b273 BUG: 1120136 Signed-off-by: Raghavendra Talur <rtalur@redhat.com> Reviewed-on: http://review.gluster.org/8315 Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
This commit is contained in:
parent
74d92e322e
commit
37b82b8abe
@ -1149,10 +1149,13 @@ client3_3_fgetxattr_cbk (struct rpc_req *req, struct iovec *iov, int count,
|
||||
|
||||
out:
|
||||
if (rsp.op_ret == -1) {
|
||||
gf_log (this->name, ((op_errno == ENOTSUP) ?
|
||||
GF_LOG_DEBUG : GF_LOG_WARNING),
|
||||
"remote operation failed: %s",
|
||||
strerror (op_errno));
|
||||
gf_log (this->name, (((op_errno == ENOTSUP) ||
|
||||
(op_errno == ERANGE) ||
|
||||
(op_errno == ENODATA) ||
|
||||
(op_errno == ENOENT)) ?
|
||||
GF_LOG_DEBUG : GF_LOG_WARNING),
|
||||
"remote operation failed: %s",
|
||||
strerror (op_errno));
|
||||
}
|
||||
|
||||
CLIENT_STACK_UNWIND (fgetxattr, frame, rsp.op_ret, op_errno, dict, xdata);
|
||||
|
Loading…
x
Reference in New Issue
Block a user