Skip to content

Commit

Permalink
[core] Remove ConsoleLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
devlikepro committed Aug 27, 2024
1 parent c3be68f commit 59015fc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
10 changes: 6 additions & 4 deletions src/core/abc/WAHAHealthCheckService.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import { ConsoleLogger, Injectable } from '@nestjs/common';
import { DiskHealthIndicator, HealthCheckService } from '@nestjs/terminus';
import { Injectable, Logger, LoggerService } from '@nestjs/common';
import { HealthCheckService } from '@nestjs/terminus';
import type { HealthCheckResult } from '@nestjs/terminus/dist/health-check/health-check-result.interface';

import { WhatsappConfigService } from '../../config.service';
import { SessionManager } from './manager.abc';

@Injectable()
export abstract class WAHAHealthCheckService {
protected logger: LoggerService;
constructor(
protected sessionManager: SessionManager,
protected health: HealthCheckService,
protected log: ConsoleLogger,
protected config: WhatsappConfigService,
) {}
) {
this.logger = new Logger('WAHAHealthCheckService');
}

abstract check(): Promise<HealthCheckResult>;
}
1 change: 0 additions & 1 deletion src/core/api/websocket.gateway.core.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
BeforeApplicationShutdown,
ConsoleLogger,
Logger,
LoggerService,
} from '@nestjs/common';
Expand Down
2 changes: 1 addition & 1 deletion src/core/engines/noweb/store/NowebInMemoryStore.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Chat, Contact, makeInMemoryStore, proto } from '@adiwajshing/baileys';
import { Label } from '@adiwajshing/baileys/lib/Types/Label';
import { BadRequestException, ConsoleLogger } from '@nestjs/common';
import { BadRequestException } from '@nestjs/common';

import { INowebStore } from './INowebStore';

Expand Down
1 change: 0 additions & 1 deletion src/core/manager.core.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
ConsoleLogger,
Injectable,
LogLevel,
NotFoundException,
Expand Down
2 changes: 0 additions & 2 deletions src/core/webhooks.core.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { ConsoleLogger } from '@nestjs/common';

import { WAHAEvents } from '../structures/enums.dto';
import { WebhookConfig } from '../structures/webhooks.config.dto';
import { WAHAWebhook } from '../structures/webhooks.dto';
Expand Down

0 comments on commit 59015fc

Please sign in to comment.