summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_log_handler.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2002-12-19 17:49:51 +0000
committerIgor Sysoev <igor@sysoev.ru>2002-12-19 17:49:51 +0000
commitfcd21fe0a2a13f82f7c460e4e3d5ab0937eaf423 (patch)
treedacad98fe50e1c152e114dc198fbc0490b69aef0 /src/http/modules/ngx_http_log_handler.c
parent8809257531cc21aab3a25bb487e9424175cdfddd (diff)
downloadnginx-fcd21fe0a2a13f82f7c460e4e3d5ab0937eaf423.tar.gz
nginx-fcd21fe0a2a13f82f7c460e4e3d5ab0937eaf423.tar.bz2
nginx-0.0.1-2002-12-19-20:49:51 import
Diffstat (limited to 'src/http/modules/ngx_http_log_handler.c')
-rw-r--r--src/http/modules/ngx_http_log_handler.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/http/modules/ngx_http_log_handler.c b/src/http/modules/ngx_http_log_handler.c
index b2f0e0d54..1cac9742a 100644
--- a/src/http/modules/ngx_http_log_handler.c
+++ b/src/http/modules/ngx_http_log_handler.c
@@ -22,11 +22,11 @@ int ngx_http_log_handler(ngx_http_request_t *r)
ngx_log_debug(r->connection->log, "log handler");
- /* %a, 20:%c, 22:%d, 3:%s, 20:%b, 5*" ", "2/1: "\r\n" */
+ /* 10:%con, 22:%date, 2:%"%r", 3:%status, 20:%bytes, 5*" ", 2/1: "\r\n" */
#if (WIN32)
- len = 2 + 20 + 22 + 3 + 20 + 5 + + 2;
+ len = 10 + 22 + 2 + 3 + 20 + 5 + 2;
#else
- len = 2 + 20 + 22 + 3 + 20 + 5 + + 1;
+ len = 10 + 22 + 2 + 3 + 20 + 5 + 1;
#endif
len += r->connection->addr_text.len;
@@ -67,7 +67,7 @@ int ngx_http_log_handler(ngx_http_request_t *r)
*p++ = ' ';
- p += ngx_snprintf(p, 21, QD_FMT, r->connection->sent);
+ p += ngx_snprintf(p, 21, OFF_FMT, r->connection->sent);
#if (WIN32)
*p++ = CR; *p++ = LF;