Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
http: use util._deprecationWarning for deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki authored and bnoordhuis committed Jan 16, 2012
1 parent f0c629a commit d5047f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/http.js
Expand Up @@ -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;
Expand Down

0 comments on commit d5047f5

Please sign in to comment.