summaryrefslogtreecommitdiff
path: root/follow-redirects/debug.js
blob: decb77dedde56627ef2d50280daa14326a6091e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var debug;

module.exports = function () {
  if (!debug) {
    try {
      /* eslint global-require: off */
      debug = require("debug")("follow-redirects");
    }
    catch (error) { /* */ }
    if (typeof debug !== "function") {
      debug = function () { /* */ };
    }
  }
  debug.apply(null, arguments);
};