comparison src/http/modules/ngx_http_log_module.c @ 654:753f505670e0 NGINX_1_1_11

nginx 1.1.11 *) Feature: the "so_keepalive" parameter of the "listen" directive. Thanks to Vsevolod Stakhov. *) Feature: the "if_not_empty" parameter of the "fastcgi/scgi/uwsgi_param" directives. *) Feature: the $https variable. *) Feature: the "proxy_redirect" directive supports variables in the first parameter. *) Feature: the "proxy_redirect" directive supports regular expressions. *) Bugfix: the $sent_http_cache_control variable might contain a wrong value if the "expires" directive was used. Thanks to Yichun Zhang. *) Bugfix: the "read_ahead" directive might not work combined with "try_files" and "open_file_cache". *) Bugfix: a segmentation fault might occur in a worker process if small time was used in the "inactive" parameter of the "proxy_cache_path" directive. *) Bugfix: responses from cache might hang.
author Igor Sysoev <http://sysoev.ru>
date Mon, 12 Dec 2011 00:00:00 +0400
parents 6f21ae02fb01
children d0f7a625f27c
comparison
equal deleted inserted replaced
653:8c96af2112c1 654:753f505670e0
969 969
970 buf = ngx_parse_size(&name); 970 buf = ngx_parse_size(&name);
971 971
972 if (buf == NGX_ERROR) { 972 if (buf == NGX_ERROR) {
973 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 973 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
974 "invalid parameter \"%V\"", &value[3]); 974 "invalid buffer value \"%V\"", &name);
975 return NGX_CONF_ERROR; 975 return NGX_CONF_ERROR;
976 } 976 }
977 977
978 if (log->file->buffer && log->file->last - log->file->pos != buf) { 978 if (log->file->buffer && log->file->last - log->file->pos != buf) {
979 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 979 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
1001 ngx_http_log_main_conf_t *lmcf = conf; 1001 ngx_http_log_main_conf_t *lmcf = conf;
1002 1002
1003 ngx_str_t *value; 1003 ngx_str_t *value;
1004 ngx_uint_t i; 1004 ngx_uint_t i;
1005 ngx_http_log_fmt_t *fmt; 1005 ngx_http_log_fmt_t *fmt;
1006
1007 if (cf->cmd_type != NGX_HTTP_MAIN_CONF) {
1008 ngx_conf_log_error(NGX_LOG_WARN, cf, 0,
1009 "the \"log_format\" directive may be used "
1010 "only on \"http\" level");
1011 }
1006 1012
1007 value = cf->args->elts; 1013 value = cf->args->elts;
1008 1014
1009 fmt = lmcf->formats.elts; 1015 fmt = lmcf->formats.elts;
1010 for (i = 0; i < lmcf->formats.nelts; i++) { 1016 for (i = 0; i < lmcf->formats.nelts; i++) {