comparison src/http/modules/ngx_http_log_module.c @ 2077:479440385e35

fix error message
author Igor Sysoev <igor@sysoev.ru>
date Mon, 30 Jun 2008 15:32:57 +0000
parents ee2fecdfdef7
children 9acbc5e7bcbd
comparison
equal deleted inserted replaced
2076:5771776acf3c 2077:479440385e35
420 if (ngx_open_cached_file(llcf->open_file_cache, &log, &of, r->pool) 420 if (ngx_open_cached_file(llcf->open_file_cache, &log, &of, r->pool)
421 != NGX_OK) 421 != NGX_OK)
422 { 422 {
423 ngx_log_error(NGX_LOG_CRIT, r->connection->log, ngx_errno, 423 ngx_log_error(NGX_LOG_CRIT, r->connection->log, ngx_errno,
424 ngx_open_file_n " \"%s\" failed", log.data); 424 ngx_open_file_n " \"%s\" failed", log.data);
425 return -1; 425 /* simulate successfull logging */
426 return len;
426 } 427 }
427 428
428 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 429 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
429 "http log #%d", of.fd); 430 "http log #%d", of.fd);
430 431