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:
parent
bdfb097bbb
commit
53ee2c1fb5
@ -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'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user