Browse Source

Turn off logging for production mode

master
xcps 6 years ago committed by R4SAS
parent
commit
b49b28beef
  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