diff --git a/src/app.js b/src/app.js index 072987b..936bff1 100644 --- a/src/app.js +++ b/src/app.js @@ -12,6 +12,7 @@ app.listen(port, () => { console.log(`Server listening on http://localhost:${port}`); + console.log(`NODE_ENV: ${process.env.NODE_ENV}`); }); process.on("uncaughtException", (err) => { diff --git a/src/routes/index.js b/src/routes/index.js index cc747da..fddaf93 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -20,8 +20,7 @@ router.get("/favicon.ico", (req, res) => res.status(204).end()); -if (!isDev) { - const logs = require("./logs"); +if (isDev) { router.use(logs); }