diff options
author | Raghavendra Bhat <raghavendra@redhat.com> | 2012-09-27 16:00:15 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2012-12-12 00:18:28 -0500 |
commit | 2e47edd40b5c678d4cfa1617568dd8cf78380193 (patch) | |
tree | 0deab50cde2ff48ee752029bf20eceb993de828a | |
parent | 3c105743e44cd77137f22a788c19a759340c4d9a (diff) |
logging: log ENOENT errors in DEBUG mode instead of ERROR or INFO
Change-Id: I08a34e58892a8b2a2fdecc606bed8db292d36332
BUG: 851953
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/36
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Tested-by: Vijay Bellur <vbellur@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/137
-rw-r--r-- | xlators/protocol/server/src/server3_1-fops.c | 3 | ||||
-rw-r--r-- | xlators/storage/posix/src/posix.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/xlators/protocol/server/src/server3_1-fops.c b/xlators/protocol/server/src/server3_1-fops.c index 1169da216e2..cf6444ff5ad 100644 --- a/xlators/protocol/server/src/server3_1-fops.c +++ b/xlators/protocol/server/src/server3_1-fops.c @@ -1078,7 +1078,8 @@ server_unlink_cbk (call_frame_t *frame, void *cookie, xlator_t *this, gf_stat_from_iatt (&rsp.postparent, postparent); } else { - gf_log (this->name, GF_LOG_INFO, + gf_log (this->name, (op_errno == ENOENT)? + GF_LOG_DEBUG:GF_LOG_ERROR, "%"PRId64": UNLINK %s (%s) ==> %"PRId32" (%s)", frame->root->unique, state->loc.path, state->loc.inode ? uuid_utoa (state->loc.inode->gfid) : diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index dc4fe153efc..5260ff37504 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -219,7 +219,8 @@ posix_stat (call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *xdata) if (op_ret == -1) { op_errno = errno; - gf_log (this->name, GF_LOG_ERROR, + gf_log (this->name, (op_errno == ENOENT)? + GF_LOG_DEBUG:GF_LOG_ERROR, "lstat on %s failed: %s", real_path, strerror (op_errno)); goto out; |