Skip to content

Commit

Permalink
Hide in DEBUG_FD deprecation warning in Webstorm Fixes debug-js#410
Browse files Browse the repository at this point in the history
+ Intellij idea
  • Loading branch information
pi0 authored Jan 22, 2017
1 parent 705a9fe commit 7e580ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.js
Original file line number Diff line number Diff line change
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) {
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)')()
}

Expand Down

0 comments on commit 7e580ef

Please sign in to comment.