]> granicus.if.org Git - icinga2/commitdiff
Enhance client disconnect message for "No data received on new API connection."
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 28 Jul 2016 15:33:15 +0000 (17:33 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 28 Jul 2016 15:40:40 +0000 (17:40 +0200)
fixes #12116

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
lib/remote/apilistener.cpp

index cb866979339d0e276748df1a3f6d4c7513b30874..320cf206fc2032e1a303e812fe1b03bb1fdcd01b 100644 (file)
@@ -394,7 +394,8 @@ void ApiListener::NewClientHandlerInternal(const Socket::Ptr& client, const Stri
                tlsStream->WaitForData(5);
 
                if (!tlsStream->IsDataAvailable()) {
-                       Log(LogWarning, "ApiListener", "No data received on new API connection.");
+                       Log(LogWarning, "ApiListener")
+                           << "No data received on new API connection for identity '" << identity << "'. Ensure that the remote endpoints are properly configured in a cluster setup.";
                        return;
                }