From 4b9069ed097301f8ffe76da448597516d97c1a2b Mon Sep 17 00:00:00 2001 From: Rich Greenhill Date: Tue, 18 Jun 2019 20:00:40 -0700 Subject: [PATCH] better logging config --- src/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.js b/src/app.js index 17cc683..fc9f3a4 100644 --- a/src/app.js +++ b/src/app.js @@ -9,8 +9,8 @@ const { NODE_ENV } = require('./config'); const app = express(); const morganOption = (NODE_ENV === 'production') - ? 'tiny' - : 'common'; + ? 'common' + : 'dev'; app.use(morgan(morganOption)); app.use(cors()); @@ -31,4 +31,4 @@ app.use(function errorHandler(error, req, res, next) { res.status(500).json(response); }); -module.exports = app; \ No newline at end of file +module.exports = app;