logging improvements, logging "/" now

This commit is contained in:
mrfry 2021-02-16 11:08:38 +01:00
parent 373cb4db71
commit 23fcb48fcd
3 changed files with 6 additions and 3 deletions

View file

@ -58,7 +58,8 @@ function GetApp(): ModuleType {
})
)
app.use((req: Request, res, next) => {
if (req.url.includes('.html')) {
const url = req.url.split('?')[0]
if (url.includes('.html') || url === '/') {
logger.LogReq(req)
}
next()