1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-01-29 16:39:18 +01:00

disable route logger for production environments

This commit is contained in:
Ondřej Synáček 2019-11-27 12:47:36 +01:00
parent bdfb097bbb
commit 53ee2c1fb5

View File

@ -36,7 +36,11 @@ if (enforceHTTPS) {
}
// Server logs
app.use(createRouteLogger({ dev: isDevelopment }))
// You can alternatively enable these to mimic logs created
// by your web server
if (isDevelopment) {
app.use(createRouteLogger({ dev: isDevelopment }))
}
app.set('view engine', 'ejs')
app.set('views', path.join(__dirname, 'views'))