From 1302f7c841ba29bfe342c4c95948bcfc626b765f Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 26 Feb 2015 13:09:13 +0100 Subject: [PATCH] Improve log message for cluster connection timeouts refs #8485 --- lib/remote/apiclient.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/remote/apiclient.cpp b/lib/remote/apiclient.cpp index d34eaadf0..f704074d3 100644 --- a/lib/remote/apiclient.cpp +++ b/lib/remote/apiclient.cpp @@ -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(); + } }