From: Michael Friedrich Date: Tue, 9 Oct 2018 10:22:19 +0000 (+0200) Subject: Improve logging for disconnected HTTP clients X-Git-Tag: v2.10.0~10^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57081176deab0fc592ce0bb5573c5b7162e1e647;p=icinga2 Improve logging for disconnected HTTP clients Previously this was inside the debug log, with the new socket printers we can enhance checking for proper connects and disconnects. refs #6514 --- diff --git a/lib/remote/httpserverconnection.cpp b/lib/remote/httpserverconnection.cpp index 497ce7b83..f4bb14439 100644 --- a/lib/remote/httpserverconnection.cpp +++ b/lib/remote/httpserverconnection.cpp @@ -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);