request_->finalize();
LOG_DEBUG(http_logger, isc::log::DBGLVL_TRACE_BASIC,
- HTTP_REQUEST_RECEIVED)
+ HTTP_CLIENT_REQUEST_RECEIVED)
.arg(getRemoteEndpointAddressAsText());
LOG_DEBUG(http_logger, isc::log::DBGLVL_TRACE_BASIC_DATA,
- HTTP_REQUEST_DETAILS)
+ HTTP_CLIENT_REQUEST_RECEIVED_DETAILS)
.arg(getRemoteEndpointAddressAsText())
.arg(parser_->getBufferAsString(MAX_LOGGED_MESSAGE_SIZE));
} catch (const std::exception& ex) {
LOG_DEBUG(http_logger, isc::log::DBGLVL_TRACE_BASIC,
- HTTP_BAD_REQUEST_RECEIVED)
+ HTTP_BAD_CLIENT_REQUEST_RECEIVED)
.arg(getRemoteEndpointAddressAsText())
.arg(ex.what());
LOG_DEBUG(http_logger, isc::log::DBGLVL_TRACE_BASIC_DATA,
- HTTP_BAD_REQUEST_DETAILS)
+ HTTP_BAD_CLIENT_REQUEST_RECEIVED_DETAILS)
.arg(getRemoteEndpointAddressAsText())
.arg(parser_->getBufferAsString(MAX_LOGGED_MESSAGE_SIZE));
}
HttpResponsePtr response = response_creator_->createHttpResponse(request_);
LOG_DEBUG(http_logger, isc::log::DBGLVL_TRACE_BASIC,
- HTTP_RESPONSE_SEND)
+ HTTP_SERVER_RESPONSE_SEND)
.arg(response->toBriefString())
.arg(getRemoteEndpointAddressAsText());
LOG_DEBUG(http_logger, isc::log::DBGLVL_TRACE_BASIC_DATA,
- HTTP_RESPONSE_DETAILS)
+ HTTP_SERVER_RESPONSE_SEND_DETAILS)
.arg(getRemoteEndpointAddressAsText())
.arg(HttpMessageParserBase::logFormatHttpMessage(response->toString(),
MAX_LOGGED_MESSAGE_SIZE));
void
HttpConnection::requestTimeoutCallback() {
LOG_DEBUG(http_logger, isc::log::DBGLVL_TRACE_DETAIL,
- HTTP_REQUEST_TIMEOUT_OCCURRED)
+ HTTP_CLIENT_REQUEST_TIMEOUT_OCCURRED)
.arg(getRemoteEndpointAddressAsText());
HttpResponsePtr response =
response_creator_->createStockHttpResponse(request_,
$NAMESPACE isc::http
-% HTTP_BAD_REQUEST_DETAILS detailed information about bad request received from %1:\n%2
-This debug message is issued when a HTTP client sends malformed request to
-the server. It includes detailed information about the received request
-rejected by the server. The first argument specifies an address of
-the remote endpoint which sent the request. The second argument provides
-a request in the textual format. The request is truncated by the logger
-if it is too large to be printed.
-
-% HTTP_BAD_REQUEST_RECEIVED bad request received from %1: %2
-This debug message is issued when a HTTP client sends malformed request to
+% HTTP_BAD_CLIENT_REQUEST_RECEIVED bad request received from %1: %2
+This debug message is issued when an HTTP client sends malformed request to
the server. This includes HTTP requests using unexpected content types,
including malformed JSON etc. The first argument specifies an address of
the remote endpoint which sent the request. The second argument provides
a detailed error message.
-% HTTP_BAD_SERVER_RESPONSE_DETAILS detailed information about bad response received from %1:\n%2
-This debug message is issued when an HTTP client receives malformed response
-from the server. The first argument specifies an URL of the server. The
-second argument provides a response in the textual format. The request is
-truncated by the logger if it is too large to be printed.
-
+% HTTP_BAD_CLIENT_REQUEST_RECEIVED_DETAILS detailed information about bad request received from %1:\n%2
+This debug message is issued when an HTTP client sends malformed request to
+the server. It includes detailed information about the received request
+rejected by the server. The first argument specifies an address of
+the remote endpoint which sent the request. The second argument provides
+a request in the textual format. The request is truncated by the logger
+if it is too large to be printed.
% HTTP_BAD_SERVER_RESPONSE_RECEIVED bad response received when communicating with %1: %2
This debug message is issued when an HTTP client fails to receive a response
specifies the server URL. The second argument provides a detailed error
message.
-% HTTP_CLIENT_REQUEST_DETAILS detailed information about request sent to %1:\n%2
-This debug message is issued right before the client sends a HTTP request
-to the server. It includes detailed information about the request. The
-first argument specifies an URL of the server to which the request is
-being sent. The second argument provides the request in the textual form.
-The request is truncated by the logger if it is too large to be printed.
+% HTTP_BAD_SERVER_RESPONSE_RECEIVED_DETAILS detailed information about bad response received from %1:\n%2
+This debug message is issued when an HTTP client receives malformed response
+from the server. The first argument specifies an URL of the server. The
+second argument provides a response in the textual format. The request is
+truncated by the logger if it is too large to be printed.
% HTTP_CLIENT_REQUEST_SEND sending HTTP request %1 to %2
This debug message is issued when the client is starting to send a HTTP
about the request (HTTP version number and status code). The second
argument specifies a URL of the server.
+% HTTP_CLIENT_REQUEST_SEND_DETAILS detailed information about request sent to %1:\n%2
+This debug message is issued right before the client sends an HTTP request
+to the server. It includes detailed information about the request. The
+first argument specifies an URL of the server to which the request is
+being sent. The second argument provides the request in the textual form.
+The request is truncated by the logger if it is too large to be printed.
+
+% HTTP_CLIENT_REQUEST_RECEIVED received HTTP request from %1
+This debug message is issued when the server finished receiving a HTTP
+request from the remote endpoint. The address of the remote endpoint is
+specified as an argument.
+
+% HTTP_CLIENT_REQUEST_RECEIVED_DETAILS detailed information about well formed request received from %1:\n%2
+This debug message is issued when the HTTP server receives a well formed
+request. It includes detailed information about the received request. The
+first argument specifies an address of the remote endpoint which sent the
+request. The second argument provides the request in the textual format.
+The request is truncated by the logger if it is too large to be printed.
+
% HTTP_CONNECTION_STOP stopping HTTP connection from %1
This debug message is issued when one of the HTTP connections is stopped.
The connection can be stopped as a result of an error or after the
This debug message is issued when the persistent HTTP connection is being
closed as a result of being idle.
-% HTTP_REQUEST_DETAILS detailed information about well formed request received from %1:\n%2
-This debug message is issued when the HTTP server receives a well formed
-request. It includes detailed information about the received request. The
-first argument specifies an address of the remote endpoint which sent the
-request. The second argument provides the request in the textual format.
-The request is truncated by the logger if it is too large to be printed.
-
-% HTTP_REQUEST_RECEIVED received HTTP request from %1
-This debug message is issued when the server finished receiving a HTTP
-request from the remote endpoint. The address of the remote endpoint is
-specified as an argument.
-
% HTTP_REQUEST_RECEIVE_START start receiving request from %1 with timeout %2
This debug message is issued when the server starts receiving new request
over the established connection. The first argument specifies the address
of the remote endpoint. The second argument specifies request timeout in
seconds.
-% HTTP_REQUEST_TIMEOUT_OCCURRED HTTP request timeout occurred when communicating with %1
+% HTTP_CLIENT_REQUEST_TIMEOUT_OCCURRED HTTP request timeout occurred when communicating with %1
This debug message is issued when the HTTP request timeout has occurred and
the server is going to send a response with Http Request timeout status
code.
-% HTTP_RESPONSE_DETAILS detailed information about response sent to %1:\n%2
+% HTTP_SERVER_RESPONSE_SEND sending HTTP response %1 to %2
+This debug message is issued when the server is starting to send a HTTP
+response to a remote endpoint. The first argument holds basic information
+about the response (HTTP version number and status code). The second
+argument specifies an address of the remote endpoint.
+
+% HTTP_SERVER_RESPONSE_SEND_DETAILS detailed information about response sent to %1:\n%2
This debug message is issued right before the server sends a HTTP response
to the client. It includes detailed information about the response. The
first argument specifies an address of the remote endpoint to which the
textual form. The response is truncated by the logger if it is too large
to be printed.
-% HTTP_RESPONSE_SEND sending HTTP response %1 to %2
-This debug message is issued when the server is starting to send a HTTP
-response to a remote endpoint. The first argument holds basic information
-about the response (HTTP version number and status code). The second
-argument specifies an address of the remote endpoint.
+% HTTP_SERVER_RESPONSE_RECEIVED received HTTP response from %1
+This debug message is issued when the client finished receiving an HTTP
+response from the server. The URL of the server is specified as an argument.
-% HTTP_SERVER_RESPONSE_DETAILS detailed information about well formed response received from %1:\n%2
+% HTTP_SERVER_RESPONSE_RECEIVED_DETAILS detailed information about well formed response received from %1:\n%2
This debug message is issued when the HTTP client receives a well formed
response from the server. It includes detailed information about the
received response. The first argument specifies a URL of the server which
format. The response is truncated by the logger if it is too large to
be printed.
-% HTTP_SERVER_RESPONSE_RECEIVED received HTTP response from %1
-This debug message is issued when the client finished receiving an HTTP
-response from the server. The URL of the server is specified as an argument.