Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
fixed small bug where logger was used also on production environment.…
Browse files Browse the repository at this point in the history
… Makes sense that original intent was to enable only for development environment
  • Loading branch information
lirantal committed Jan 5, 2014
1 parent add000d commit e2ea8da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/express.js
Expand Up @@ -26,8 +26,8 @@ module.exports = function(app, passport, db) {
level: 9
}));

// Don't use logger for test env
if (process.env.NODE_ENV !== 'test') {
// Only use logger for development environment
if (process.env.NODE_ENV === 'development') {
app.use(express.logger('dev'));
}

Expand Down

0 comments on commit e2ea8da

Please sign in to comment.