comparison src/http/modules/ngx_http_log_module.c @ 482:392c16f2d858 NGINX_0_7_53

nginx 0.7.53 *) Change: now a log set by --error-log-path is created from the very start-up. *) Feature: now the start up errors and warnings are outputted to an error_log and stderr. *) Feature: the empty --prefix= configure parameter forces nginx to use a directory where it was run as prefix. *) Feature: the -p switch. *) Feature: the -s switch on Unix platforms. *) Feature: the -? and -h switches. Thanks to Jerome Loyet. *) Feature: now switches may be set in condensed form. *) Bugfix: nginx/Windows did not work if configuration file was given by the -c switch. *) Bugfix: temporary files might be not removed if the "proxy_store", "fastcgi_store", "proxy_cache", or "fastcgi_cache" were used. Thanks to Maxim Dounin. *) Bugfix: an incorrect value was passed to mail proxy authentication server in "Auth-Method" header line; the bug had appeared in 0.7.34. Thanks to Simon Lecaille. *) Bugfix: system error text descriptions were not logged on Linux; the bug had appeared in 0.7.45. *) Bugfix: the "fastcgi_cache_min_uses" directive did not work. Thanks to Andrew Vorobyoff.
author Igor Sysoev <http://sysoev.ru>
date Mon, 27 Apr 2009 00:00:00 +0400
parents a8424ffa495c
children f39b9e29530d
comparison
equal deleted inserted replaced
481:0c98173187ac 482:392c16f2d858
383 383
384 ngx_memzero(&of, sizeof(ngx_open_file_info_t)); 384 ngx_memzero(&of, sizeof(ngx_open_file_info_t));
385 385
386 of.valid = clcf->open_file_cache_valid; 386 of.valid = clcf->open_file_cache_valid;
387 of.min_uses = clcf->open_file_cache_min_uses; 387 of.min_uses = clcf->open_file_cache_min_uses;
388 of.test_dir = 1;
389 of.test_only = 1;
388 of.errors = clcf->open_file_cache_errors; 390 of.errors = clcf->open_file_cache_errors;
389 of.events = clcf->open_file_cache_events; 391 of.events = clcf->open_file_cache_events;
390 392
391 if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool) 393 if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool)
392 != NGX_OK) 394 != NGX_OK)
437 439
438 if (ngx_open_cached_file(llcf->open_file_cache, &log, &of, r->pool) 440 if (ngx_open_cached_file(llcf->open_file_cache, &log, &of, r->pool)
439 != NGX_OK) 441 != NGX_OK)
440 { 442 {
441 ngx_log_error(NGX_LOG_CRIT, r->connection->log, ngx_errno, 443 ngx_log_error(NGX_LOG_CRIT, r->connection->log, ngx_errno,
442 ngx_open_file_n " \"%s\" failed", log.data); 444 "%s \"%s\" failed", of.failed, log.data);
443 /* simulate successfull logging */ 445 /* simulate successfull logging */
444 return len; 446 return len;
445 } 447 }
446 448
447 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 449 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,