1
0
mirror of https://github.com/GOSTSec/gostexplr synced 2025-01-30 08:24:23 +00:00

Turn off logging for production mode

This commit is contained in:
xcps 2018-08-15 20:44:56 +05:00 committed by R4SAS
parent 2ba2704881
commit b49b28beef

4
app.js
View File

@ -20,7 +20,9 @@ app.set('view engine', 'pug');
// uncomment after placing your favicon in /public
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.urlencoded({ extended: false }));
app.use(cookieParser());