]> granicus.if.org Git - icinga2/commitdiff
Improve logging for disconnected HTTP clients 6655/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Tue, 9 Oct 2018 10:22:19 +0000 (12:22 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Tue, 9 Oct 2018 10:22:19 +0000 (12:22 +0200)
Previously this was inside the debug log, with the
new socket printers we can enhance checking for proper
connects and disconnects.

refs #6514

lib/remote/httpserverconnection.cpp

index 497ce7b83c447f8f4c95b58943b420facbbaba68..f4bb144394dceb968e65db97bb4fcc575f25e923 100644 (file)
@@ -83,7 +83,8 @@ void HttpServerConnection::Disconnect()
                return;
        }
 
-       Log(LogDebug, "HttpServerConnection", "Http client disconnected");
+       Log(LogInformation, "HttpServerConnection")
+               << "HTTP client disconnected (from " << m_Stream->GetSocket()->GetPeerAddress() << ")";
 
        ApiListener::Ptr listener = ApiListener::GetInstance();
        listener->RemoveHttpClient(this);