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
This commit is contained in:
Michael Friedrich 2018-10-09 12:22:19 +02:00
parent 051b3ba9b7
commit 57081176de
1 changed files with 2 additions and 1 deletions

View 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);