Skip to content

Commit e44c9d8

Browse files
committed
added even more nginx debugging logs to the ngx.semaphore API implementation.
1 parent 9799d27 commit e44c9d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ngx_http_lua_semaphore.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,9 @@ ngx_http_lua_ffi_semaphore_wait(ngx_http_request_t *r,
376376
wait_co_ctx->data = sem;
377377
wait_co_ctx->cleanup = ngx_http_lua_semaphore_cleanup;
378378

379+
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, sem->log, 0,
380+
"http lua semaphore wait yielding");
381+
379382
return NGX_AGAIN;
380383
}
381384

0 commit comments

Comments
 (0)