Skip to content

Commit

Permalink
better logging config
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSkinny authored Jun 19, 2019
1 parent 01fb007 commit 4b9069e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -31,4 +31,4 @@ app.use(function errorHandler(error, req, res, next) {
res.status(500).json(response);
});

module.exports = app;
module.exports = app;

0 comments on commit 4b9069e

Please sign in to comment.