util: prepend '(node) ' to deprecation messages
authorSakthipriyan Vairamani <thechargingvolcano@gmail.com>
Sat, 13 Jun 2015 16:44:39 +0000 (16:44 +0000)
committerRoman Reiss <me@silverwind.io>
Fri, 3 Jul 2015 14:32:29 +0000 (16:32 +0200)
commit9cd44bb2b683446531306bbcff8739fc3526d02c
tree54a52ca88eb414d8025608f7d87df9a58e99be2f
parentd55a778bae2188a24b2cb1f1006cf7cc09432649
util: prepend '(node) ' to deprecation messages

Changes included in this commit are

   1. Making the deprecation messages consistent. The messages will be in
      the following format

           x is deprecated. Use y instead.

      If there is no alternative for `x`, then the ` Use y instead.` part
      will not be there in the message.

   2. All the internal deprecation messages are printed with the prefix
      `(node) `, except when the `--trace-deprecation` flag is set.

Fixes: https://github.com/nodejs/io.js/issues/1883
PR-URL: https://github.com/nodejs/io.js/pull/1892
Reviewed-By: Roman Reiss <me@silverwind.io>
16 files changed:
lib/_http_outgoing.js
lib/_stream_writable.js
lib/buffer.js
lib/child_process.js
lib/crypto.js
lib/http.js
lib/internal/util.js
lib/module.js
lib/net.js
lib/os.js
lib/readline.js
lib/smalloc.js
lib/tty.js
lib/util.js
test/fixtures/deprecated-userland-function.js [new file with mode: 0644]
test/sequential/test-deprecation-flags.js