mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
logging improvements, logging "/" now
This commit is contained in:
@@ -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()
|
||||
|
@@ -66,7 +66,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()
|
||||
|
Reference in New Issue
Block a user