We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9f8907 commit 103ede1Copy full SHA for 103ede1
src/log4js.interceptor.abstract.ts
@@ -15,9 +15,9 @@ export abstract class Log4jsInterceptorAbstract implements NestInterceptor {
15
call$: Observable<any>,
16
): Observable<any> {
17
const httpRequest = context.switchToHttp().getRequest();
18
- this.requestLogger.info(this.requestFormat(httpRequest));
19
return call$.pipe(
20
tap(httpResponse => {
+ this.requestLogger.info(this.requestFormat(httpRequest));
21
this.responseLogger.info(this.responseFormat(httpResponse));
22
}),
23
);
0 commit comments