]> granicus.if.org Git - icinga2/commitdiff
Improve log message for cluster connection timeouts
authorGunnar Beutner <gunnar@beutner.name>
Thu, 26 Feb 2015 12:09:13 +0000 (13:09 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Thu, 26 Feb 2015 12:09:13 +0000 (13:09 +0100)
refs #8485

lib/remote/apiclient.cpp

index d34eaadf0f80f3cf16a2c5fd98cb68e9a889b90f..f704074d381ab9b90a796da0bb52c5f17729349b 100644 (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();
+       }
 }