fix: fix file list collection

This commit is contained in:
tdurieux
2024-04-27 17:05:39 +01:00
parent 2a145730b7
commit 378942a28e
3 changed files with 39 additions and 32 deletions

View File

@@ -142,7 +142,12 @@ export default async function start() {
const start = Date.now();
res.on("finish", function () {
const time = Date.now() - start;
console.log(`${req.method} ${join(req.baseUrl, req.url)} ${time}ms`);
console.log(
`${req.method} ${res.statusCode} ${join(
req.baseUrl,
req.url
)} ${time}ms`
);
});
next();
});