Skip to content

Commit

Permalink
fix: move to use custom logger
Browse files Browse the repository at this point in the history
  • Loading branch information
techsavvyash committed Jan 4, 2024
1 parent a32b5e6 commit 2443937
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/interceptors/geoip.interceptor.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { Injectable, NestInterceptor, ExecutionContext, CallHandler, Logger, HttpStatus, InternalServerErrorException, HttpException } from '@nestjs/common';
import { Observable } from 'rxjs';
import { HttpService } from '@nestjs/axios';
import { CustomLogger } from "../common/logger";

@Injectable()
export class GeoIPInterceptor implements NestInterceptor {
private logger: Logger;
private logger: CustomLogger;
private readonly httpService: HttpService;

constructor() {
this.logger = new Logger('GeoIPInterceptor');
this.logger = new CustomLogger('GeoIPInterceptor');
this.httpService = new HttpService();
}

Expand Down

0 comments on commit 2443937

Please sign in to comment.