Improve log message for cluster connection timeouts

refs #8485
This commit is contained in:
Gunnar Beutner 2015-02-26 13:09:13 +01:00
parent cc99406dd3
commit 1302f7c841
1 changed files with 4 additions and 1 deletions

View File

@ -259,6 +259,9 @@ Value RequestCertificateHandler(const MessageOrigin& origin, const Dictionary::P
void ApiClient::TimeoutTimerHandler(void)
{
if (Utility::GetTime() - 60 > m_Seen)
if (m_Seen < Utility::GetTime() - 60) {
Log(LogInformation, "ApiClient")
<< "No messages for identity '" << m_Identity << "' have been received in the last 60 seconds.";
Disconnect();
}
}