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:
parent
2ba2704881
commit
b49b28beef
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…
x
Reference in New Issue
Block a user