AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

This commit is contained in:
Esther 2020-06-22 21:30:26 +01:00
parent c62bdf9536
commit 3b514b2e10
No known key found for this signature in database
GPG Key ID: 162A307C5EBD40EA

2
app.js
View File

@ -18,7 +18,7 @@ app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'pug');
if (process.env.NODE_ENV === 'production') {
app.use(logger('common', { skip: function(req, res) { return res.statusCode < 400 }, stream: __dirname + '/../morgan.log' }));
app.use(logger('common', { skip: function(req, res) { return res.statusCode < 400 }, stream: __dirname + 'morgan.log' }));
} else {
app.use(logger('dev'));
}