Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
♻️ Use service name in loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Nov 8, 2020
1 parent 500534b commit 149651c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/interceptors/audit-log.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { UAParser } from 'ua-parser-js';

@Injectable()
export class AuditLogger implements NestInterceptor {
logger = new Logger('audit-logs');
logger = new Logger(AuditLogger.name);

constructor(
private readonly reflector: Reflector,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/stripe/stripe.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { PrismaService } from '../prisma/prisma.service';
@Injectable()
export class StripeService {
stripe: Stripe;
logger = new Logger('stripe');
logger = new Logger(StripeService.name);

constructor(
private configService: ConfigService,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/twilio/twilio.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { MessageListInstanceCreateOptions } from 'twilio/lib/rest/api/v2010/acco
@Injectable()
export class TwilioService {
twilio: TwilioClient;
logger = new Logger('twilio');
logger = new Logger(TwilioService.name);
private queue = new PQueue({ concurrency: 1 });

constructor(private configService: ConfigService) {
Expand Down

0 comments on commit 149651c

Please sign in to comment.