Mercurial > hg > nginx
diff src/http/ngx_http_request.c @ 239:574bea0142be
nginx-0.0.1-2004-01-26-11:52:49 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 26 Jan 2004 08:52:49 +0000 |
parents | 4eaafcd57be7 |
children | 187dc0a3197d |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c Fri Jan 23 09:26:18 2004 +0000 +++ b/src/http/ngx_http_request.c Mon Jan 26 08:52:49 2004 +0000 @@ -1115,7 +1115,8 @@ ssize_t size, n; ngx_http_core_loc_conf_t *clcf; - ngx_log_debug(r->connection->log, "http read discarded body"); + ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, + "http read discarded body"); if (r->headers_in.content_length_n == 0) { return NGX_OK; @@ -1164,7 +1165,7 @@ c = r->connection; rev = c->read; - ngx_log_debug(c->log, "set http keepalive handler"); + ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "set http keepalive handler"); ctx = (ngx_http_log_ctx_t *) c->log->data; ctx->action = "closing request"; @@ -1201,7 +1202,7 @@ h->last = h->start + len; } - ngx_log_debug(c->log, "pipelined request"); + ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "pipelined request"); c->pipeline = 1; ctx->action = "reading client pipelined request line"; @@ -1259,7 +1260,7 @@ c = (ngx_connection_t *) rev->data; - ngx_log_debug(c->log, "http keepalive handler"); + ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http keepalive handler"); if (rev->timedout) { ngx_http_close_connection(c); @@ -1370,7 +1371,8 @@ c = rev->data; r = c->data; - ngx_log_debug(c->log, "http lingering close handler"); + ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, + "http lingering close handler"); if (rev->timedout) { ngx_http_close_request(r, 0); @@ -1411,7 +1413,7 @@ do { n = ngx_recv(c, r->discarded_buffer, clcf->discarded_buffer_size); - ngx_log_debug(c->log, "lingering read: %d" _ n); + ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, "lingering read: %d", n); if (n == NGX_ERROR || n == 0) { ngx_http_close_request(r, 0); @@ -1434,7 +1436,7 @@ void ngx_http_empty_handler(ngx_event_t *wev) { - ngx_log_debug(wev->log, "http EMPTY handler"); + ngx_log_debug0(NGX_LOG_DEBUG_HTTP, wev->log, 0, "http empty handler"); return; } @@ -1519,7 +1521,8 @@ void ngx_http_close_connection(ngx_connection_t *c) { - ngx_log_debug(c->log, "close connection: %d" _ c->fd); + ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, + "close connection: %d", c->fd); if (c->pool == NULL) { ngx_log_error(NGX_LOG_ALERT, c->log, 0, "connection already closed");