comparison src/http/modules/ngx_http_fastcgi_module.c @ 1037:c28c8bdb57f4

fix debug logging
author Igor Sysoev <igor@sysoev.ru>
date Tue, 16 Jan 2007 20:43:36 +0000
parents 5a86fcc480c6
children df8cdf626c87
comparison
equal deleted inserted replaced
1036:defdce84b172 1037:c28c8bdb57f4
1306 p->last_in = &cl->next; 1306 p->last_in = &cl->next;
1307 1307
1308 1308
1309 /* STUB */ b->num = buf->num; 1309 /* STUB */ b->num = buf->num;
1310 1310
1311 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, p->log, 0, "input buf #%d", b->num);
1312
1313 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, p->log, 0, 1311 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, p->log, 0,
1314 "input buf %p %z", b->pos, b->last - b->pos); 1312 "input buf #%d %p", b->num, b->pos);
1315
1316 1313
1317 if (f->pos + f->length < f->last) { 1314 if (f->pos + f->length < f->last) {
1318 1315
1319 if (f->padding) { 1316 if (f->padding) {
1320 f->state = ngx_http_fastcgi_st_padding; 1317 f->state = ngx_http_fastcgi_st_padding;
1352 if (b) { 1349 if (b) {
1353 b->shadow = buf; 1350 b->shadow = buf;
1354 b->last_shadow = 1; 1351 b->last_shadow = 1;
1355 1352
1356 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, p->log, 0, 1353 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, p->log, 0,
1357 "input buf last %p %z", b->pos, b->last - b->pos); 1354 "input buf %p %z", b->pos, b->last - b->pos);
1358 1355
1359 return NGX_OK; 1356 return NGX_OK;
1360 } 1357 }
1361 1358
1362 /* there is no data record in the buf, add it to free chain */ 1359 /* there is no data record in the buf, add it to free chain */