Mercurial > hg > nginx
comparison src/http/modules/ngx_http_fastcgi_module.c @ 6480:f01ab2dbcfdc
Fixed logging.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 31 Mar 2016 02:33:57 +0300 |
parents | 2cd019520210 |
children | b5734248d5e7 |
comparison
equal
deleted
inserted
replaced
6479:dc92298b1852 | 6480:f01ab2dbcfdc |
---|---|
1651 | 1651 |
1652 if (f->type != NGX_HTTP_FASTCGI_STDOUT | 1652 if (f->type != NGX_HTTP_FASTCGI_STDOUT |
1653 && f->type != NGX_HTTP_FASTCGI_STDERR) | 1653 && f->type != NGX_HTTP_FASTCGI_STDERR) |
1654 { | 1654 { |
1655 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, | 1655 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, |
1656 "upstream sent unexpected FastCGI record: %d", | 1656 "upstream sent unexpected FastCGI record: %ui", |
1657 f->type); | 1657 f->type); |
1658 | 1658 |
1659 return NGX_HTTP_UPSTREAM_INVALID_HEADER; | 1659 return NGX_HTTP_UPSTREAM_INVALID_HEADER; |
1660 } | 1660 } |
1661 | 1661 |
1832 part_end = u->buffer.last; | 1832 part_end = u->buffer.last; |
1833 | 1833 |
1834 rc = ngx_http_parse_header_line(r, &u->buffer, 1); | 1834 rc = ngx_http_parse_header_line(r, &u->buffer, 1); |
1835 | 1835 |
1836 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 1836 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
1837 "http fastcgi parser: %d", rc); | 1837 "http fastcgi parser: %i", rc); |
1838 | 1838 |
1839 if (rc == NGX_AGAIN) { | 1839 if (rc == NGX_AGAIN) { |
1840 break; | 1840 break; |
1841 } | 1841 } |
1842 | 1842 |
2503 | 2503 |
2504 buf->last = buf->pos; | 2504 buf->last = buf->pos; |
2505 | 2505 |
2506 for (cl = u->out_bufs; cl; cl = cl->next) { | 2506 for (cl = u->out_bufs; cl; cl = cl->next) { |
2507 ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 2507 ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
2508 "http fastcgi in memory %p-%p %uz", | 2508 "http fastcgi in memory %p-%p %O", |
2509 cl->buf->pos, cl->buf->last, ngx_buf_size(cl->buf)); | 2509 cl->buf->pos, cl->buf->last, ngx_buf_size(cl->buf)); |
2510 | 2510 |
2511 if (buf->last == cl->buf->pos) { | 2511 if (buf->last == cl->buf->pos) { |
2512 buf->last = cl->buf->last; | 2512 buf->last = cl->buf->last; |
2513 continue; | 2513 continue; |