Skip to content

Commit bd1da87

Browse files
committed
bugfix: fixed ngx_log_debugN which fails to compile without --with-debug. thanks @ldmiao for reporting it.
1 parent 47d9773 commit bd1da87

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ngx_http_lua_output.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ ngx_http_lua_ngx_flush(lua_State *L)
410410
dd("wait:%d, rc:%d, buffered:%d", wait, (int) rc, r->connection->buffered);
411411

412412
if (wait && r->connection->buffered) {
413-
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
413+
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
414414
"lua flush requires waiting: buffered 0x%uxd",
415415
(int) r->connection->buffered);
416416

src/ngx_http_lua_util.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ ngx_http_lua_wev_handler(ngx_http_request_t *r)
998998
dd("req read body done: %d", (int) ctx->req_read_body_done);
999999

10001000
if (c->buffered) {
1001-
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0,
1001+
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0,
10021002
"lua wev handler flushing output: buffered 0x%uxd",
10031003
c->buffered);
10041004

@@ -1029,7 +1029,7 @@ ngx_http_lua_wev_handler(ngx_http_request_t *r)
10291029
}
10301030

10311031
if (ctx->waiting_flush) {
1032-
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0,
1032+
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0,
10331033
"lua flush still waiting: buffered 0x%uxd",
10341034
c->buffered);
10351035

0 commit comments

Comments
 (0)