Browse Source

Replaced fprintf with log_error_write in mod-fastcgi

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2287 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.20
Stefan Bühler 13 years ago
parent
commit
b511c42939
  1. 1
      NEWS
  2. 16
      src/mod_fastcgi.c

1
NEWS

@ -54,6 +54,7 @@ NEWS
* Match headers case insensitive in response (removing of X-{Sendfile,LIGHTTPD-*}, catching Date/Server)
* fixed bug with case-insensitive filenames in mod_userdir (#1589), spotted by "anders1"
* fixed format string bugs in mod_accesslog for SYSLOG
* replaced fprintf with log_error_write in fastcgi debug
- 1.4.19 - 2008-03-10

16
src/mod_fastcgi.c

@ -2119,12 +2119,12 @@ static int fcgi_create_env(server *srv, handler_ctx *hctx, size_t request_id) {
hctx->wb->bytes_in += sizeof(header);
if (p->conf.debug > 10) {
fprintf(stderr, "%s.%d: tosend: %lld / %lld\n", __FILE__, __LINE__, offset, req_cq->bytes_in);
log_error_write(srv, __FILE__, __LINE__, "soso", "tosend:", offset, "/", req_cq->bytes_in);
}
for (written = 0; written != weWant; ) {
if (p->conf.debug > 10) {
fprintf(stderr, "%s.%d: chunk: %lld / %lld\n", __FILE__, __LINE__, written, weWant);
log_error_write(srv, __FILE__, __LINE__, "soso", "chunk:", written, "/", weWant);
}
switch (req_c->type) {
@ -2134,12 +2134,10 @@ static int fcgi_create_env(server *srv, handler_ctx *hctx, size_t request_id) {
if (weHave > weWant - written) weHave = weWant - written;
if (p->conf.debug > 10) {
fprintf(stderr, "%s.%d: sending %lld bytes from (%lld / %lld) %s\n",
__FILE__, __LINE__,
weHave,
req_c->offset,
req_c->file.length,
req_c->file.name->ptr);
log_error_write(srv, __FILE__, __LINE__, "soSosOsb",
"sending", weHave, "bytes from (",
req_c->offset, "/", req_c->file.length, ")",
req_c->file.name);
}
assert(weHave != 0);
@ -2168,7 +2166,7 @@ static int fcgi_create_env(server *srv, handler_ctx *hctx, size_t request_id) {
chunk *c;
if (p->conf.debug > 10) {
fprintf(stderr, "%s.%d: next chunk\n", __FILE__, __LINE__);
log_error_write(srv, __FILE__, __LINE__, "s", "next chunk");
}
c = hctx->wb->last;

Loading…
Cancel
Save