[njs] Enabling exception backtraces in nginx modules.
Dmitry Volyntsev
xeioex at nginx.com
Fri Nov 17 16:06:05 UTC 2017
details: http://hg.nginx.org/njs/rev/779156b4b930
branches:
changeset: 424:779156b4b930
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Fri Nov 17 18:55:07 2017 +0300
description:
Enabling exception backtraces in nginx modules.
diffstat:
nginx/ngx_http_js_module.c | 1 +
nginx/ngx_stream_js_module.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diffs (22 lines):
diff -r 5637024772aa -r 779156b4b930 nginx/ngx_http_js_module.c
--- a/nginx/ngx_http_js_module.c Fri Nov 17 18:55:07 2017 +0300
+++ b/nginx/ngx_http_js_module.c Fri Nov 17 18:55:07 2017 +0300
@@ -1322,6 +1322,7 @@ ngx_http_js_include(ngx_conf_t *cf, ngx_
ngx_memzero(&options, sizeof(njs_vm_opt_t));
options.mcp = mcp;
+ options.backtrace = 1;
options.externals_hash = &externals;
jlcf->vm = njs_vm_create(&options);
diff -r 5637024772aa -r 779156b4b930 nginx/ngx_stream_js_module.c
--- a/nginx/ngx_stream_js_module.c Fri Nov 17 18:55:07 2017 +0300
+++ b/nginx/ngx_stream_js_module.c Fri Nov 17 18:55:07 2017 +0300
@@ -1032,6 +1032,7 @@ ngx_stream_js_include(ngx_conf_t *cf, ng
ngx_memzero(&options, sizeof(njs_vm_opt_t));
options.mcp = mcp;
+ options.backtrace = 1;
options.externals_hash = &externals;
jscf->vm = njs_vm_create(&options);
More information about the nginx-devel
mailing list