diff options
author | Krishnan Parthasarathi <kparthas@redhat.com> | 2014-08-25 16:21:08 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2014-12-10 22:35:03 -0800 |
commit | 757394c1d764955f0068dfaf10692ae2d56a2b94 (patch) | |
tree | 05a5ba432a0d2f8e12a3570ebf91f0979bb23b65 /rpc/rpc-transport | |
parent | 0b293a95839a68005dd464526598a113b37b089b (diff) |
rpc/rpcsvc: add peername to log messages
This would allow users/developers to associate rpc layer log messages
to the corresponding connection.
Change-Id: I040f79248dced7174a4364d9f995612ed3540dd4
Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-on: http://review.gluster.org/8535
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Tested-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'rpc/rpc-transport')
-rw-r--r-- | rpc/rpc-transport/socket/src/socket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c index c4b777bca34..2a6586beafd 100644 --- a/rpc/rpc-transport/socket/src/socket.c +++ b/rpc/rpc-transport/socket/src/socket.c @@ -1890,7 +1890,8 @@ __socket_read_reply (rpc_transport_t *this) if (ret == -1) { gf_log (this->name, GF_LOG_WARNING, - "notify for event MAP_XID failed"); + "notify for event MAP_XID failed for %s", + this->peerinfo.identifier); goto out; } } |