mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Add APLOGNO to error messages
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1816922 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -70,7 +70,7 @@ static int uwsgi_canon(request_rec *r, char *url)
|
|||||||
|
|
||||||
err = ap_proxy_canon_netloc(r->pool, &url, NULL, NULL, &host, &port);
|
err = ap_proxy_canon_netloc(r->pool, &url, NULL, NULL, &host, &port);
|
||||||
if (err) {
|
if (err) {
|
||||||
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
|
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(10097)
|
||||||
"error parsing URL %s: %s", url, err);
|
"error parsing URL %s: %s", url, err);
|
||||||
return HTTP_BAD_REQUEST;
|
return HTTP_BAD_REQUEST;
|
||||||
}
|
}
|
||||||
@@ -107,7 +107,7 @@ static int uwsgi_send(proxy_conn_rec * conn, const char *buf,
|
|||||||
while (length > 0) {
|
while (length > 0) {
|
||||||
written = length;
|
written = length;
|
||||||
if ((rv = apr_socket_send(conn->sock, buf, &written)) != APR_SUCCESS) {
|
if ((rv = apr_socket_send(conn->sock, buf, &written)) != APR_SUCCESS) {
|
||||||
ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r,
|
ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, APLOGNO(10098)
|
||||||
"sending data to %s:%u failed",
|
"sending data to %s:%u failed",
|
||||||
conn->hostname, conn->port);
|
conn->hostname, conn->port);
|
||||||
return HTTP_SERVICE_UNAVAILABLE;
|
return HTTP_SERVICE_UNAVAILABLE;
|
||||||
@@ -223,7 +223,7 @@ static int uwsgi_send_body(request_rec *r, proxy_conn_rec * conn)
|
|||||||
readlen = ap_get_client_block(r, buf, AP_IOBUFSIZE);
|
readlen = ap_get_client_block(r, buf, AP_IOBUFSIZE);
|
||||||
}
|
}
|
||||||
if (readlen == -1) {
|
if (readlen == -1) {
|
||||||
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
|
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(10099)
|
||||||
"receiving request body failed");
|
"receiving request body failed");
|
||||||
return HTTP_INTERNAL_SERVER_ERROR;
|
return HTTP_INTERNAL_SERVER_ERROR;
|
||||||
}
|
}
|
||||||
@@ -474,7 +474,7 @@ static int uwsgi_handler(request_rec *r, proxy_worker * worker,
|
|||||||
}
|
}
|
||||||
decode_status = ap_unescape_url(url + w_len - delta);
|
decode_status = ap_unescape_url(url + w_len - delta);
|
||||||
if (decode_status) {
|
if (decode_status) {
|
||||||
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
|
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(10100)
|
||||||
"unable to decode uri: %s", url + w_len - delta);
|
"unable to decode uri: %s", url + w_len - delta);
|
||||||
return HTTP_INTERNAL_SERVER_ERROR;
|
return HTTP_INTERNAL_SERVER_ERROR;
|
||||||
}
|
}
|
||||||
@@ -501,7 +501,7 @@ static int uwsgi_handler(request_rec *r, proxy_worker * worker,
|
|||||||
|
|
||||||
/* Step Two: Make the Connection */
|
/* Step Two: Make the Connection */
|
||||||
if (ap_proxy_connect_backend(UWSGI_SCHEME, backend, worker, r->server)) {
|
if (ap_proxy_connect_backend(UWSGI_SCHEME, backend, worker, r->server)) {
|
||||||
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
|
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(10101)
|
||||||
"failed to make connection to backend: %s:%u",
|
"failed to make connection to backend: %s:%u",
|
||||||
backend->hostname, backend->port);
|
backend->hostname, backend->port);
|
||||||
status = HTTP_SERVICE_UNAVAILABLE;
|
status = HTTP_SERVICE_UNAVAILABLE;
|
||||||
|
Reference in New Issue
Block a user