add var to identify static resource requests
This commit is contained in:
@@ -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) => {
|
||||
|
Reference in New Issue
Block a user