projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0c629a
)
http: use `util._deprecationWarning` for deprecation warning
author
Maciej Małecki
<maciej.malecki@notimplemented.org>
Mon, 16 Jan 2012 16:50:18 +0000
(17:50 +0100)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Mon, 16 Jan 2012 18:45:14 +0000
(19:45 +0100)
lib/http.js
patch
|
blob
|
history
diff --git
a/lib/http.js
b/lib/http.js
index
38a8027
..
232fc8a
100644
(file)
--- 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;