mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +01:00
improve request logging
This commit is contained in:
@@ -111,11 +111,7 @@ function route(method, path, middleware, routeHandler, resultHandler, transactio
|
||||
res.sendStatus(500);
|
||||
}
|
||||
|
||||
const time = Date.now() - start;
|
||||
|
||||
if (time >= 10) {
|
||||
console.log(`Slow request: ${time}ms - ${method} ${path}`);
|
||||
}
|
||||
log.request(req, Date.now() - start);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user