summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_log_handler.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-03-05 06:37:42 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-03-05 06:37:42 +0000
commit3d062ad9393e7bc22a448971799808be55372f91 (patch)
tree15558f6465ed0e632d3442f54140af8aa5acca41 /src/http/modules/ngx_http_log_handler.c
parent6a644c694de6a7afc87d25395c2cf6fcc46c4e6f (diff)
downloadnginx-3d062ad9393e7bc22a448971799808be55372f91.tar.gz
nginx-3d062ad9393e7bc22a448971799808be55372f91.tar.bz2
nginx-0.0.1-2003-03-05-09:37:42 import
Diffstat (limited to 'src/http/modules/ngx_http_log_handler.c')
-rw-r--r--src/http/modules/ngx_http_log_handler.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/http/modules/ngx_http_log_handler.c b/src/http/modules/ngx_http_log_handler.c
index 1cac9742a..e087adea3 100644
--- a/src/http/modules/ngx_http_log_handler.c
+++ b/src/http/modules/ngx_http_log_handler.c
@@ -22,11 +22,12 @@ int ngx_http_log_handler(ngx_http_request_t *r)
ngx_log_debug(r->connection->log, "log handler");
- /* 10:%con, 22:%date, 2:%"%r", 3:%status, 20:%bytes, 5*" ", 2/1: "\r\n" */
+ /* 10:%con, 1:%pipe, 22:%date, 2:"%r", 3:%status, 20:%bytes,
+ 6*" ", 2/1: "\r\n" */
#if (WIN32)
- len = 10 + 22 + 2 + 3 + 20 + 5 + 2;
+ len = 10 + 1 + 22 + 2 + 3 + 20 + 6 + 2;
#else
- len = 10 + 22 + 2 + 3 + 20 + 5 + 1;
+ len = 10 + 1 + 22 + 2 + 3 + 20 + 6 + 1;
#endif
len += r->connection->addr_text.len;
@@ -44,6 +45,14 @@ int ngx_http_log_handler(ngx_http_request_t *r)
*p++ = ' ';
+ if (r->pipeline) {
+ *p++ = 'p';
+ } else {
+ *p++ = '.';
+ }
+
+ *p++ = ' ';
+
ngx_localtime(&tm);
*p++ = '[';