diff options
author | Amar Tumballi <amar@gluster.com> | 2011-03-16 09:39:46 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-17 11:57:43 -0700 |
commit | d4aae8327ac5581cd47dd0fcea796ddbb03be5ea (patch) | |
tree | 38a237b1f5ab98690e563c22e84be5c3216e7935 /rpc/rpc-lib/src/rpc-common.c | |
parent | abc2a6b0b91a82bb59327cd2a4ca72b8954e1425 (diff) |
rpc/rpc-lib : log enhancements
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 'rpc/rpc-lib/src/rpc-common.c')
-rw-r--r-- | rpc/rpc-lib/src/rpc-common.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rpc/rpc-lib/src/rpc-common.c b/rpc/rpc-lib/src/rpc-common.c index 941f01a2510..db7b92834e7 100644 --- a/rpc/rpc-lib/src/rpc-common.c +++ b/rpc/rpc-lib/src/rpc-common.c @@ -18,7 +18,7 @@ */ - +#include "logging.h" #include "xdr-common.h" ssize_t @@ -34,6 +34,8 @@ xdr_serialize_generic (struct iovec outmsg, void *res, xdrproc_t proc) XDR_ENCODE); if (!proc (&xdr, res)) { + gf_log_callingfn ("xdr", GF_LOG_WARNING, + "XDR encoding failed"); ret = -1; goto ret; } @@ -58,6 +60,8 @@ xdr_to_generic (struct iovec inmsg, void *args, xdrproc_t proc) XDR_DECODE); if (!proc (&xdr, args)) { + gf_log_callingfn ("xdr", GF_LOG_WARNING, + "XDR decoding failed"); ret = -1; goto ret; } |