fix logging

This commit is contained in:
Gsk54 2022-12-26 15:24:20 +01:00
parent c4747bf6d6
commit 8c4e8a8073
3 changed files with 4 additions and 2 deletions

View File

@ -15,6 +15,7 @@ import { DeleteAuthUseCase } from './domain/usecases/delete-auth.usecase';
import { RabbitMQModule } from '@golevelup/nestjs-rabbitmq';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { AuthMessagerController } from './adapters/primaries/auth-messager.controller';
import { LoggingMessager } from './adapters/secondaries/logging.messager';
@Module({
imports: [
@ -44,6 +45,7 @@ import { AuthMessagerController } from './adapters/primaries/auth-messager.contr
AuthProfile,
UsernameProfile,
AuthRepository,
LoggingMessager,
ValidateAuthUseCase,
CreateAuthUseCase,
AddUsernameUseCase,

View File

@ -32,7 +32,7 @@ export class CreateAuthUseCase {
return auth;
} catch (error) {
this._loggingMessager.publish(
'auth.create.critical',
'auth.create.crit',
JSON.stringify({
command,
error,

View File

@ -22,7 +22,7 @@ export class DeleteAuthUseCase {
});
} catch (error) {
this._loggingMessager.publish(
'auth.delete.critical',
'auth.delete.crit',
JSON.stringify({
command,
error,