Skip to content

Commit

Permalink
Hide in DEBUG_FD deprecation warning in Webstorm Fixes #410
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 22, 2017
1 parent 7e580ef commit eb0bcad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.js
Expand Up @@ -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 && !('FORCE_COLOR' in process.env) && !('DEBUG_COLORS' in process.env) ) {
if ('DEBUG_FD' in process.env && !('DEBUG_COLORS' in process.env && process.env.DEBUG_FD == 1)) {
util.deprecate(function(){}, '`DEBUG_FD` is deprecated. Override `debug.log` if you want to use a different log function (https://git.io/vMUyr)')()
}

Expand Down

0 comments on commit eb0bcad

Please sign in to comment.