summaryrefslogtreecommitdiffhomepage
path: root/src/nodejs/unit-http
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-11-30 23:30:20 +0300
committerMax Romanov <max.romanov@nginx.com>2020-11-30 23:30:20 +0300
commit55296e6ff2613a0b2ec588beaf01620b2679c3d1 (patch)
tree7ceb5782869c2c8ebe2b80313d7418f11b267082 /src/nodejs/unit-http
parent956fce6614dd0979a2995c792131d894e132e614 (diff)
downloadunit-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.cpp24
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);
}