diff --git a/index.js b/index.js index 6cdb4b5..9f42a94 100644 --- a/index.js +++ b/index.js @@ -25,6 +25,9 @@ app.use(express.static('public')); //Debugger app.use((req, res, next) => { + if (process.env.DEBUG !== 'true') { + return next(); + } console.log(`${req.method} ${req.url}`); console.log('Body:', req.body); console.log('Query:', req.query);