diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2023-09-22 13:00:04 -0700 |
---|---|---|
committer | Dmitry Volyntsev <xeioex@nginx.com> | 2023-09-22 13:00:04 -0700 |
commit | f600c28dc1525315e6ccdda27d7a8ccfe8fd9f9a (patch) | |
tree | 7226a06359c8252cd87868d58ff423d2963f16de /nginx/ngx_http_js_module.c | |
parent | 16144ce651d7ebb81c48403733ffa451a0a18590 (diff) | |
download | njs-f600c28dc1525315e6ccdda27d7a8ccfe8fd9f9a.tar.gz njs-f600c28dc1525315e6ccdda27d7a8ccfe8fd9f9a.zip |
Modules: added debug log for vm cloning and destroying.
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r-- | nginx/ngx_http_js_module.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index 6ba500e7..49f9790f 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -1366,6 +1366,9 @@ ngx_http_js_init_vm(ngx_http_request_t *r, njs_int_t proto_id) return NGX_ERROR; } + ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, + "http js vm clone: %p from: %p", ctx->vm, jlcf->vm); + cln = ngx_pool_cleanup_add(r->pool, 0); if (cln == NULL) { return NGX_ERROR; @@ -1425,6 +1428,9 @@ ngx_http_js_cleanup_ctx(void *data) ngx_log_error(NGX_LOG_ERR, ctx->log, 0, "pending events"); } + ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ctx->log, 0, "http js vm destroy: %p", + ctx->vm); + njs_vm_destroy(ctx->vm); } |