Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaciej MaƂecki <maciej.malecki@notimplemented.org>2012-01-16 20:50:18 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-01-16 22:45:14 +0400
commitd5047f5fe669c0434da99e2aacd197e228d040a4 (patch)
tree360d3143a263fe725fe1c9a80fc815abe0349039 /lib
parentf0c629a36be217db68261eb54c6e134a4dba1c61 (diff)
http: use `util._deprecationWarning` for deprecation warning
Diffstat (limited to 'lib')
-rw-r--r--lib/http.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http.js b/lib/http.js
index 38a80272566..232fc8a08f7 100644
--- a/lib/http.js
+++ b/lib/http.js
@@ -1590,8 +1590,8 @@ exports._connectionListener = connectionListener;
function Client(port, host) {
// TODO http.Client can be removed in v0.9. Until then leave this message.
- console.trace('http.Client is a legacy interface and will be removed in ' +
- 'the near future. Do not use it.');
+ util._deprecationWarning('http.Client', 'http.Client is a legacy interface' +
+ ' and will be removed in the near future. Do not use it.');
host = host || 'localhost';
port = port || 80;
this.host = host;