summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGauravKumarGarg <ggarg@redhat.com>2014-11-17 12:50:49 +0530
committerKaushal M <kaushal@redhat.com>2014-11-20 21:20:45 -0800
commit7d0bfc90027c824e6d49cba7c3c3dc818f9c365b (patch)
tree524f5294dc138923fd914a1352177237cb103e2c
parent6ba258d2b7d4520af95ff638e02598e4aa247ec4 (diff)
glusterd: Add hostname/ip-address along with host's UUID in glusterd log message
Previously when host disconnected from cluster then glusterd logs identifies host using host's UUID. Now with this fix, UUID along with host's ip will be present in glusterd log message when one of the peer disconnected from cluster. So it will enhancement better readability of user from log file. Change-Id: I3b7eaf1b1a8963ef2096e67a78cf69f67d5d5166 BUG: 1101382 Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com> Reviewed-on: http://review.gluster.org/9136 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com> Reviewed-by: Kaushal M <kaushal@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index 46efb58f275..463de91440d 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -4603,8 +4603,9 @@ __glusterd_peer_rpc_notify (struct rpc_clnt *rpc, void *mydata,
rpc_clnt_unset_connected (&rpc->conn);
gf_msg (this->name, GF_LOG_INFO, 0,
GD_MSG_PEER_DISCONNECTED,
- "Peer %s, in %s state, has disconnected from glusterd.",
- uuid_utoa (peerinfo->uuid),
+ "Peer <%s> (<%s>), in state <%s>, has disconnected "
+ "from glusterd.",
+ peerinfo->hostname, uuid_utoa (peerinfo->uuid),
glusterd_friend_sm_state_name_get (peerinfo->state.state));
if (peerinfo->connected) {