From 4d463fe0743cb9120b52ac46092c987d345c3141 Mon Sep 17 00:00:00 2001 From: Eric MacDonald Date: Fri, 8 Jun 2018 10:49:40 -0400 Subject: [PATCH] Mtce: add host and iface name to msg debug log in hbsAgent Story: 2002882 Task: 22845 Change-Id: If4a6768f7f210742130679afb56c5f5364273bfc Signed-off-by: Jack Ding --- mtce-common/cgts-mtce-common-1.0/heartbeat/hbsAgent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtce-common/cgts-mtce-common-1.0/heartbeat/hbsAgent.cpp b/mtce-common/cgts-mtce-common-1.0/heartbeat/hbsAgent.cpp index b69aefb2..fa19c1e8 100755 --- a/mtce-common/cgts-mtce-common-1.0/heartbeat/hbsAgent.cpp +++ b/mtce-common/cgts-mtce-common-1.0/heartbeat/hbsAgent.cpp @@ -983,7 +983,7 @@ int send_event ( string & hostname, unsigned int event_cmd, iface_enum iface ) event.num = 1 ; event.parm[0] = iface ; - print_mtc_message ( LOCALHOST, MTC_CMD_TX, event, LOCALHOST , false ); + print_mtc_message ( hostname, MTC_CMD_TX, event, get_iface_name_str(iface) , false ); /* remove the buffer as it is not needed for this message */ bytes_to_send = ((sizeof(mtc_message_type))-(BUF_SIZE-hostname.length())) ;