Permalink
Browse files

bugfix: fixed ngx_log_debugN which fails to compile without --with-de…

…bug. thanks @ldmiao for reporting it.
  • Loading branch information...
1 parent 47d9773 commit bd1da870a611753bc5ee85d514abdcb1d5c8b7b7 @agentzh agentzh committed Nov 26, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/ngx_http_lua_output.c
  2. +2 −2 src/ngx_http_lua_util.c
View
2 src/ngx_http_lua_output.c
@@ -410,7 +410,7 @@ ngx_http_lua_ngx_flush(lua_State *L)
dd("wait:%d, rc:%d, buffered:%d", wait, (int) rc, r->connection->buffered);
if (wait && r->connection->buffered) {
- ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
+ ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"lua flush requires waiting: buffered 0x%uxd",
(int) r->connection->buffered);
View
4 src/ngx_http_lua_util.c
@@ -998,7 +998,7 @@ ngx_http_lua_wev_handler(ngx_http_request_t *r)
dd("req read body done: %d", (int) ctx->req_read_body_done);
if (c->buffered) {
- ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0,
+ ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0,
"lua wev handler flushing output: buffered 0x%uxd",
c->buffered);
@@ -1029,7 +1029,7 @@ ngx_http_lua_wev_handler(ngx_http_request_t *r)
}
if (ctx->waiting_flush) {
- ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0,
+ ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0,
"lua flush still waiting: buffered 0x%uxd",
c->buffered);

0 comments on commit bd1da87

Please sign in to comment.