mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 13:56:11 +01:00
search script UI
This commit is contained in:
@@ -64,7 +64,7 @@ function error(message) {
|
||||
|
||||
const requestBlacklist = [ "/libraries", "/app", "/images", "/stylesheets" ];
|
||||
|
||||
function request(req, timeMs) {
|
||||
function request(req, res, timeMs) {
|
||||
for (const bl of requestBlacklist) {
|
||||
if (req.url.startsWith(bl)) {
|
||||
return;
|
||||
@@ -76,7 +76,7 @@ function request(req, timeMs) {
|
||||
}
|
||||
|
||||
info((timeMs >= 10 ? "Slow " : "") +
|
||||
req.method + " " + req.url + " took " + timeMs + "ms");
|
||||
res.statusCode + " " + req.method + " " + req.url + " took " + timeMs + "ms");
|
||||
}
|
||||
|
||||
function pad(num) {
|
||||
|
||||
Reference in New Issue
Block a user