Skip to content

Commit

Permalink
refactor: remove some debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
WeihanLi committed Dec 26, 2024
1 parent dee899d commit bd0036d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/shared/interceptors/response.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export class ResponseInterceptor implements HttpInterceptor {
) : Observable<HttpEvent<any>> {

return next.handle(request).pipe(tap(event => {
if (event.type === HttpEventType.Response) {
console.log('response received');
}
// if (event.type === HttpEventType.Response) {
// console.debug('response received');
// }
}, (error : HttpErrorResponse) => {
console.error(error);

Expand All @@ -39,7 +39,7 @@ export class ResponseInterceptor implements HttpInterceptor {
duration: 2000,
});
}
if(this.loadingSvc.isLoading === true){
if (this.loadingSvc.isLoading === true){
this.loadingSvc.isLoading = false;
}
}));
Expand Down

0 comments on commit bd0036d

Please sign in to comment.