From 7e580ef5bb2dbd9b46d0c18dc1ba55404de2e7ec Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sun, 22 Jan 2017 23:10:51 +0330 Subject: [PATCH] Hide in DEBUG_FD deprecation warning in Webstorm Fixes #410 + Intellij idea --- src/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.js b/src/node.js index ea6a8967..5b16b893 100644 --- a/src/node.js +++ b/src/node.js @@ -58,7 +58,7 @@ exports.inspectOpts = Object.keys(process.env).filter(function (key) { * $ DEBUG_FD=3 node script.js 3>debug.log */ -if ('DEBUG_FD' in process.env) { +if ('DEBUG_FD' in process.env && !('FORCE_COLOR' in process.env) && !('DEBUG_COLORS' in process.env) ) { util.deprecate(function(){}, '`DEBUG_FD` is deprecated. Override `debug.log` if you want to use a different log function (https://git.io/vMUyr)')() }