summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/nodejs/unit-http/http_server.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nodejs/unit-http/http_server.js b/src/nodejs/unit-http/http_server.js
index b78f309a..4e1c190e 100644
--- a/src/nodejs/unit-http/http_server.js
+++ b/src/nodejs/unit-http/http_server.js
@@ -5,7 +5,6 @@
'use strict';
-const { stderr } = require('process');
const EventEmitter = require('events');
const http = require('http');
const util = require('util');
@@ -419,7 +418,7 @@ function Server(options, requestListener) {
requestListener = options;
options = {};
} else {
- stderr.write("http.Server constructor was called with unsupported options, using default settings\n");
+ console.warn("http.Server constructor was called with unsupported options, using default settings");
}
EventEmitter.call(this);