aboutsummaryrefslogtreecommitdiff
path: root/nginx/ngx_stream_js_module.c
diff options
context:
space:
mode:
authorDmitry Volyntsev <xeioex@nginx.com>2022-07-25 18:40:24 -0700
committerDmitry Volyntsev <xeioex@nginx.com>2022-07-25 18:40:24 -0700
commit5e0434747e3b93e04c661f90dee8ef22e190be22 (patch)
tree6f3eadb63fb8489b5e7ca8a654397d8e94faf86a /nginx/ngx_stream_js_module.c
parent9480746fb1246de9e0dff3529c99704bfa938f24 (diff)
downloadnjs-5e0434747e3b93e04c661f90dee8ef22e190be22.tar.gz
njs-5e0434747e3b93e04c661f90dee8ef22e190be22.zip
Added generic logger callback.
This allows for a host environment to control when and how internal NJS messages are logged.
Diffstat (limited to 'nginx/ngx_stream_js_module.c')
-rw-r--r--nginx/ngx_stream_js_module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nginx/ngx_stream_js_module.c b/nginx/ngx_stream_js_module.c
index 50c02acc..ae7726fa 100644
--- a/nginx/ngx_stream_js_module.c
+++ b/nginx/ngx_stream_js_module.c
@@ -499,6 +499,7 @@ static njs_vm_ops_t ngx_stream_js_ops = {
ngx_stream_js_set_timer,
ngx_stream_js_clear_timer,
NULL,
+ ngx_js_logger,
};