Skip to content

Commit 3fba50c

Browse files
authored
fix: do not overwrite body while logging req/res (#1486)
1 parent 7ac3b4c commit 3fba50c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/middleware-logger/src/loggerMiddleware.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ export const loggerMiddleware = () => <Output extends MetadataBearer = MetadataB
3131

3232
if (typeof logger.debug === "function") {
3333
logger.debug({
34-
httpRequest: { ...(args.request as any), body: "examine input under info" },
34+
httpRequest: args.request,
3535
});
3636
logger.debug({
37-
httpResponse: { ...(response.response as any), body: "examine output under info" },
37+
httpResponse: response.response,
3838
});
3939
}
4040

0 commit comments

Comments
 (0)