]> granicus.if.org Git - apache/commitdiff
Add APLOGNO to error messages
authorChristophe Jaillet <jailletc36@apache.org>
Fri, 1 Dec 2017 22:15:24 +0000 (22:15 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Fri, 1 Dec 2017 22:15:24 +0000 (22:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1816922 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_uwsgi.c

index e94905f8f2afcb3de861324011511fe9fadb5c06..175276aa485599efe5ccfc7e1781e5b06f7fd0ba 100644 (file)
@@ -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);
     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);
         return HTTP_BAD_REQUEST;
     }
@@ -107,7 +107,7 @@ static int uwsgi_send(proxy_conn_rec * conn, const char *buf,
     while (length > 0) {
         written = length;
         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",
                           conn->hostname, conn->port);
             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);
         }
         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");
             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);
     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);
         return HTTP_INTERNAL_SERVER_ERROR;
     }
@@ -501,7 +501,7 @@ static int uwsgi_handler(request_rec *r, proxy_worker * worker,
 
     /* Step Two: Make the Connection */
     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",
                       backend->hostname, backend->port);
         status = HTTP_SERVICE_UNAVAILABLE;