Merge pull request #6655 from Icinga/feature/api-http-disconnect-log

Improve logging for disconnected HTTP clients
This commit is contained in:
Michael Friedrich 2018-10-09 12:37:41 +02:00 committed by GitHub
commit 3a550e214c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);