From 7d0bfc90027c824e6d49cba7c3c3dc818f9c365b Mon Sep 17 00:00:00 2001 From: GauravKumarGarg Date: Mon, 17 Nov 2014 12:50:49 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/9136 Tested-by: Gluster Build System Reviewed-by: Krishnan Parthasarathi Reviewed-by: Kaushal M --- xlators/mgmt/glusterd/src/glusterd-handler.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c') 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) { -- cgit