mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:17:08 +00:00
Report also request body size, if applicable
This commit is contained in:
@@ -45,7 +45,7 @@ app.use(cookieParser());
|
|||||||
app.use(mw.auth.jwt);
|
app.use(mw.auth.jwt);
|
||||||
|
|
||||||
app.use((req, res, next) => {
|
app.use((req, res, next) => {
|
||||||
DEBUG("⟴ %s (%j)", req.originalUrl, req.user);
|
DEBUG("⟴ %s %s %s (%j)", req.method, req.originalUrl, req.body?.length ? `${req.body.length} bytes` : "", req.user);
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user