mirror of https://github.com/Icinga/icinga2.git
Merge pull request #7087 from Icinga/feature/http-server-log-user-agent
HttpServerConnection: Log the user agent field for new requests too
This commit is contained in:
commit
0640ad3853
|
@ -489,7 +489,9 @@ void HttpServerConnection::ProcessMessages(boost::asio::yield_context yc)
|
|||
Log(LogInformation, "HttpServerConnection")
|
||||
<< "Request: " << request.method_string() << ' ' << request.target()
|
||||
<< " (from " << m_PeerAddress
|
||||
<< "), user: " << (authenticatedUser ? authenticatedUser->GetName() : "<unauthenticated>") << ')';
|
||||
<< "), user: " << (authenticatedUser ? authenticatedUser->GetName() : "<unauthenticated>")
|
||||
<< ", agent: " << request[http::field::user_agent] << ")."; //operator[] - Returns the value for a field, or "" if it does not exist.
|
||||
|
||||
|
||||
if (!HandleAccessControl(*m_Stream, request, response, yc)) {
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue