add var to identify static resource requests

This commit is contained in:
2023-05-12 14:10:41 +02:00
parent 06695c5443
commit e6f6b1ddc5
2 changed files with 19 additions and 2 deletions

View File

@@ -23,7 +23,13 @@ httpServer.preprocessor((_req, rep) => {
httpServer.middleware(async (req, _rep, done) => {
const processTime = await done();
console.log(`${req.method} - ${req.remoteIpAddr} - ${req.path} - ${prettyTime(processTime)}`);
if (!req.resourceRequest) {
console.log(
`${req.method} - ${req.remoteIpAddr} - ${req.path} - ${
prettyTime(processTime)
}`,
);
}
});
httpServer.error((req, _rep) => {