[nginx] svn commit: r4886 - trunk/src/http/modules

mdounin at mdounin.ru mdounin at mdounin.ru
Wed Oct 3 15:25:06 UTC 2012


Author: mdounin
Date: 2012-10-03 15:25:06 +0000 (Wed, 03 Oct 2012)
New Revision: 4886
URL: http://trac.nginx.org/nginx/changeset/4886/nginx

Log:
Log: $apache_bytes_sent removed.

It was renamed to $body_bytes_sent in nginx 0.3.10 and the old name is
deprecated since then.


Modified:
   trunk/src/http/modules/ngx_http_log_module.c

Modified: trunk/src/http/modules/ngx_http_log_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_log_module.c	2012-10-03 15:24:08 UTC (rev 4885)
+++ trunk/src/http/modules/ngx_http_log_module.c	2012-10-03 15:25:06 UTC (rev 4886)
@@ -209,8 +209,6 @@
     { ngx_string("bytes_sent"), NGX_OFF_T_LEN, ngx_http_log_bytes_sent },
     { ngx_string("body_bytes_sent"), NGX_OFF_T_LEN,
                           ngx_http_log_body_bytes_sent },
-    { ngx_string("apache_bytes_sent"), NGX_OFF_T_LEN,
-                          ngx_http_log_body_bytes_sent },
     { ngx_string("request_length"), NGX_SIZE_T_LEN,
                           ngx_http_log_request_length },
 
@@ -1143,12 +1141,6 @@
                     goto invalid;
                 }
 
-                if (ngx_strncmp(var.data, "apache_bytes_sent", 17) == 0) {
-                    ngx_conf_log_error(NGX_LOG_WARN, cf, 0,
-                        "use \"$body_bytes_sent\" instead of "
-                        "\"$apache_bytes_sent\"");
-                }
-
                 for (v = ngx_http_log_vars; v->name.len; v++) {
 
                     if (v->name.len == var.len



More information about the nginx-devel mailing list