From d5047f5fe669c0434da99e2aacd197e228d040a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Mon, 16 Jan 2012 17:50:18 +0100 Subject: [PATCH] http: use `util._deprecationWarning` for deprecation warning --- lib/http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/http.js b/lib/http.js index 38a8027256..232fc8a08f 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;