summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorDan Callahan <d.callahan@f5.com>2024-02-19 12:22:05 +0000
committerDan Callahan <dan.callahan@gmail.com>2024-02-19 14:56:57 +0000
commit756feafd541160e97edfb6faf13e9942271629ce (patch)
tree5e6e93d7123255f98c5e5e9ffc07a66a362543b3 /src
parent1dca86028a1306655f513512f353a38e10b75d85 (diff)
downloadunit-756feafd541160e97edfb6faf13e9942271629ce.tar.gz
unit-756feafd541160e97edfb6faf13e9942271629ce.tar.bz2
Node.js: Use console.warn instead of stderr.write
Functionally identical, but marginally more idiomatic. Refines: fbeb2065b180e2376088387ee150d3975dc08cd5
Diffstat (limited to 'src')
-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);