Browse Source

Turn off logging for production mode

pull/1/head
xcps 6 years ago
parent
commit
d12f91b3c5
  1. 4
      app.js

4
app.js

@ -20,7 +20,9 @@ app.set('view engine', 'pug');
// uncomment after placing your favicon in /public // uncomment after placing your favicon in /public
app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
app.use(logger('dev')); if (env === 'development') {
app.use(logger('dev'));
}
app.use(bodyParser.json()); app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false })); app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser()); app.use(cookieParser());

Loading…
Cancel
Save