Browse Source

fix to properly configure "debug"

fix-133-memory-crash
Dan Janosik 6 years ago
parent
commit
67e56ae148
No known key found for this signature in database GPG Key ID: C6F8CE9FFDB2CED2
  1. 5
      app.js

5
app.js

@ -13,6 +13,11 @@ configPaths.filter(fs.existsSync).forEach(path => {
dotenv.config({ path });
});
// debug module is already loaded by the time we do dotenv.config
// so refresh the status of DEBUG env var
var debug = require("debug");
debug.enable(process.env.DEBUG);
var express = require('express');
var favicon = require('serve-favicon');
var logger = require('morgan');

Loading…
Cancel
Save