From 57081176deab0fc592ce0bb5573c5b7162e1e647 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 9 Oct 2018 12:22:19 +0200 Subject: [PATCH] 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 --- lib/remote/httpserverconnection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);