diff options
author | Maciej MaĆecki <maciej.malecki@notimplemented.org> | 2012-01-16 20:50:18 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-01-16 22:45:14 +0400 |
commit | d5047f5fe669c0434da99e2aacd197e228d040a4 (patch) | |
tree | 360d3143a263fe725fe1c9a80fc815abe0349039 /lib | |
parent | f0c629a36be217db68261eb54c6e134a4dba1c61 (diff) |
http: use `util._deprecationWarning` for deprecation warning
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.js | 4 |
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; |