diff options
author | Max Romanov <max.romanov@nginx.com> | 2020-11-30 23:30:20 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2020-11-30 23:30:20 +0300 |
commit | 55296e6ff2613a0b2ec588beaf01620b2679c3d1 (patch) | |
tree | 7ceb5782869c2c8ebe2b80313d7418f11b267082 | |
parent | 956fce6614dd0979a2995c792131d894e132e614 (diff) | |
download | unit-55296e6ff2613a0b2ec588beaf01620b2679c3d1.tar.gz unit-55296e6ff2613a0b2ec588beaf01620b2679c3d1.tar.bz2 |
Node.js: removing unnecessary warnings.
Warnings changed for debug messages.
Diffstat (limited to '')
-rw-r--r-- | src/nodejs/unit-http/unit.cpp | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/src/nodejs/unit-http/unit.cpp b/src/nodejs/unit-http/unit.cpp index c5bca49a..b166707e 100644 --- a/src/nodejs/unit-http/unit.cpp +++ b/src/nodejs/unit-http/unit.cpp @@ -998,33 +998,21 @@ Unit::websocket_set_sock(napi_env env, napi_callback_info info) void -Unit::conn_destroy(napi_env env, void *nativeObject, void *finalize_hint) +Unit::conn_destroy(napi_env env, void *r, void *finalize_hint) { - nxt_unit_request_info_t *req; - - req = (nxt_unit_request_info_t *) nativeObject; - - nxt_unit_warn(NULL, "conn_destroy: %p", req); + nxt_unit_req_debug((nxt_unit_request_info_t *) r, "conn_destroy: %p", r); } void -Unit::sock_destroy(napi_env env, void *nativeObject, void *finalize_hint) +Unit::sock_destroy(napi_env env, void *r, void *finalize_hint) { - nxt_unit_request_info_t *req; - - req = (nxt_unit_request_info_t *) nativeObject; - - nxt_unit_warn(NULL, "sock_destroy: %p", req); + nxt_unit_req_debug((nxt_unit_request_info_t *) r, "sock_destroy: %p", r); } void -Unit::resp_destroy(napi_env env, void *nativeObject, void *finalize_hint) +Unit::resp_destroy(napi_env env, void *r, void *finalize_hint) { - nxt_unit_request_info_t *req; - - req = (nxt_unit_request_info_t *) nativeObject; - - nxt_unit_warn(NULL, "resp_destroy: %p", req); + nxt_unit_req_debug((nxt_unit_request_info_t *) r, "resp_destroy: %p", r); } |