Add hostname to log

This commit is contained in:
Arthur Barr
2020-12-10 16:43:09 +00:00
committed by Arthur J Barr
parent ac3dcdd0d0
commit 12a2dee175
2 changed files with 8 additions and 1 deletions

View File

@@ -271,11 +271,14 @@ static void MQENTRY mqhtpass_terminate(
PMQLONG pCompCode,
PMQLONG pReason)
{
log_infof("Terminating %s", NAME);
if (Options == MQZTO_PRIMARY)
{
log_infof("Terminating %s", NAME);
log_close();
}
else {
log_debugf("Terminating secondary");
}
*pCompCode = MQCC_OK;
*pReason = MQRC_NONE;
}