mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(api): 🐛 Fix body not being logged in request debugging
This commit is contained in:
parent
de75310b61
commit
e59c3aa625
2 changed files with 3 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ import { config } from "~/packages/config-manager";
|
|||
|
||||
export const logger = createMiddleware(async (context, next) => {
|
||||
if (config.logging.log_requests) {
|
||||
await debugRequest(context.req.raw);
|
||||
await debugRequest(context.req.raw, await context.req.text());
|
||||
}
|
||||
|
||||
await next();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue