Log ClientInfo on participant close. (#2057)

Want to check client distribution for negotiation failed induced closes.
This commit is contained in:
Raja Subramanian
2023-09-11 10:29:09 +05:30
committed by GitHub
parent 1b20b8f1ac
commit be4ea44425
+7 -1
View File
@@ -717,7 +717,13 @@ func (p *ParticipantImpl) Close(sendLeave bool, reason types.ParticipantCloseRea
return nil
}
p.params.Logger.Infow("participant closing", "sendLeave", sendLeave, "reason", reason.String(), "isExpectedToResume", isExpectedToResume)
p.params.Logger.Infow(
"participant closing",
"sendLeave", sendLeave,
"reason", reason.String(),
"isExpectedToResume", isExpectedToResume,
"clientInfo", p.params.ClientInfo.String(),
)
p.clearDisconnectTimer()
p.clearMigrationTimer()