title: (node:5132) DeprecationWarning: `DEBUG_FD` is deprecated. with bodyParser
body: <p>I am using express and bodyParser to get POST data on an express webserver.</p>
  
  <p>The smallest example which replicates the error is this:</p>
  
  <pre><code>var bodyParser = require('body-parser');
  var express = require("express");
  
  var app = express();
  app.use(bodyParser.urlencoded({extended: true}));
  </code></pre>
  
  <p>What happens is it prints out an error:</p>
  
  <pre><code>"C:\Program Files (x86)\JetBrains\WebStorm 2016.1.1\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" test.js
  (node:5132) DeprecationWarning: `DEBUG_FD` is deprecated. Override `debug.log` if you want to use a different log function (https://git.io/vMUyr)
  
  Process finished with exit code 0
  </code></pre>
  
  <p>It only happens when I include bodyParser. Even with the error everything still works, the program still runs fine. I just want to get rid of this annoying message. I've googled around have found this from when it was deprecated: <a href="https://github.com/visionmedia/debug/issues/386" rel="nofollow noreferrer">https://github.com/visionmedia/debug/issues/386</a></p>
  
  <p>The problem is I have no idea what DEBUG_FD is, apparently it's an environment variable, I've tried to turn it off with this in terminal:</p>
  
  <pre><code>&gt; node
  &gt; process.env["DEBUG_FD"] = false
  false
  </code></pre>
  
  <p>Still didn't fix it. Any ideas?</p>