Skip to content

Commit

Permalink
fix: Update geoip.interceptor.ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
DarrenDsouza7273 authored and Savio629 committed Jul 6, 2024
1 parent 4382416 commit cbf686e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/interceptors/geoip.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class GeoIPInterceptor implements NestInterceptor {

// Extract IP address
const clientIp = request.headers['request.ip'] || request.headers['x-forwarded-for'] || request.ip;
this.logger.log('Using IP address for geolocation:', clientIp, 'from request:');
this.logger.log('Using IP address for geolocation:', clientIp);

try {
// Call the geolocation service to get the country from the IP
Expand Down

0 comments on commit cbf686e

Please sign in to comment.