Skip to content

Commit 103ede1

Browse files
author
liujia02
committed
move requestlogger
1 parent a9f8907 commit 103ede1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/log4js.interceptor.abstract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ export abstract class Log4jsInterceptorAbstract implements NestInterceptor {
1515
call$: Observable<any>,
1616
): Observable<any> {
1717
const httpRequest = context.switchToHttp().getRequest();
18-
this.requestLogger.info(this.requestFormat(httpRequest));
1918
return call$.pipe(
2019
tap(httpResponse => {
20+
this.requestLogger.info(this.requestFormat(httpRequest));
2121
this.responseLogger.info(this.responseFormat(httpResponse));
2222
}),
2323
);

0 commit comments

Comments
 (0)