diff options
| author | Amar Tumballi <amar@gluster.com> | 2011-03-16 09:43:33 +0000 | 
|---|---|---|
| committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-17 11:59:17 -0700 | 
| commit | 0f39192ef6bc7b1c74cfaeb04ed21305996d67e9 (patch) | |
| tree | cc18ff8e20e15af3b2515b6cb9d1fcb2f1f3f664 /xlators/protocol/client/src/client-helpers.c | |
| parent | 0349ec857004428f29b50f3604e5ab126dfb407e (diff) | |
protocol/client: log enhancement
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 2346 (Log message enhancements in GlusterFS - phase 1)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2346
Diffstat (limited to 'xlators/protocol/client/src/client-helpers.c')
| -rw-r--r-- | xlators/protocol/client/src/client-helpers.c | 14 | 
1 files changed, 6 insertions, 8 deletions
diff --git a/xlators/protocol/client/src/client-helpers.c b/xlators/protocol/client/src/client-helpers.c index 4dd51257b6e..85a9f89ed65 100644 --- a/xlators/protocol/client/src/client-helpers.c +++ b/xlators/protocol/client/src/client-helpers.c @@ -78,25 +78,23 @@ this_fd_set_ctx (fd_t *file, xlator_t *this, loc_t *loc, clnt_fd_ctx_t *ctx)          ret = fd_ctx_get (file, this, &oldaddr);          if (ret >= 0) {                  if (loc) -                        gf_log (this->name, GF_LOG_DEBUG, +                        gf_log (this->name, GF_LOG_INFO,                                  "%s (%"PRId64"): trying duplicate remote fd set. ",                                  loc->path, loc->inode->ino);                  else -                        gf_log (this->name, GF_LOG_DEBUG, -                                "%p: trying duplicate remote fd set. ", -                                file); +                        gf_log (this->name, GF_LOG_INFO, +                                "%p: trying duplicate remote fd set. ", file);          }          ret = fd_ctx_set (file, this, (uint64_t)(unsigned long)ctx);          if (ret < 0) {                  if (loc) -                        gf_log (this->name, GF_LOG_DEBUG, +                        gf_log (this->name, GF_LOG_WARNING,                                  "%s (%"PRId64"): failed to set remote fd",                                  loc->path, loc->inode->ino);                  else -                        gf_log (this->name, GF_LOG_DEBUG, -                                "%p: failed to set remote fd", -                                file); +                        gf_log (this->name, GF_LOG_WARNING, +                                "%p: failed to set remote fd", file);          }  out:          return;  | 
