comparison src/http/modules/ngx_http_log_module.c @ 296:2ceaee987f37 NGINX_0_5_18

nginx 0.5.18 *) Feature: the ngx_http_sub_filter_module. *) Feature: the "$upstream_http_..." variables. *) Feature: now the $upstream_status and $upstream_response_time variables keep data about all upstreams before X-Accel-Redirect. *) Bugfix: a segmentation fault occurred in master process after first reconfiguration and receiving any signal if nginx was built with ngx_http_perl_module and perl did not support multiplicity; bug appeared in 0.5.9. *) Bugfix: if perl did not support multiplicity, then after reconfiguration perl code did not work; bug appeared in 0.3.38.
author Igor Sysoev <http://sysoev.ru>
date Thu, 19 Apr 2007 00:00:00 +0400
parents 704622b2528a
children 30862655219e
comparison
equal deleted inserted replaced
295:65b7ac8795e3 296:2ceaee987f37
300 300
301 if (err == NGX_ENOSPC) { 301 if (err == NGX_ENOSPC) {
302 log->disk_full_time = now; 302 log->disk_full_time = now;
303 } 303 }
304 304
305 if (now - log->error_log_time > 60) { 305 if (now - log->error_log_time > 59) {
306 ngx_log_error(NGX_LOG_ALERT, r->connection->log, err, 306 ngx_log_error(NGX_LOG_ALERT, r->connection->log, err,
307 ngx_write_fd_n " to \"%V\" failed", 307 ngx_write_fd_n " to \"%V\" failed",
308 &log->file->name); 308 &log->file->name);
309 309
310 log->error_log_time = now; 310 log->error_log_time = now;
311 } 311 }
312 312
313 return; 313 return;
314 } 314 }
315 315
316 if (now - log->error_log_time > 60) { 316 if (now - log->error_log_time > 59) {
317 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, 317 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
318 ngx_write_fd_n " to \"%V\" was incomplete: %z of %uz", 318 ngx_write_fd_n " to \"%V\" was incomplete: %z of %uz",
319 &log->file->name, n, len); 319 &log->file->name, n, len);
320 320
321 log->error_log_time = now; 321 log->error_log_time = now;