Report also request body size, if applicable

This commit is contained in:
D. Berge
2023-11-03 18:51:43 +01:00
parent 246f01efbe
commit 71467dddf9

View File

@@ -45,7 +45,7 @@ app.use(cookieParser());
app.use(mw.auth.jwt);
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();
});