nestjs-i18n icon indicating copy to clipboard operation
nestjs-i18n copied to clipboard

warning logs on unrecognised context type

Open d-michail opened this issue 2 years ago • 2 comments

We are using this module together with the @golevelup/nestjs-rabbitmq module which defines a custom rmq context.

Due to this line https://github.com/toonvanstrijp/nestjs-i18n/blob/843830259775d734bf8903c351888fb32329637e/src/utils/context.ts#L14 the interceptors issue a warning message on each message received from a rabbit queue.

The package works correctly, since it bails out when it does not understand the context, but still one warning for each received message is highly undesirable.

It is possible to remove the warning message or provide some configurable way to disable it?

d-michail avatar Jun 25 '22 16:06 d-michail

@d-michail this isn't possible yet. But feel free to make a PR for it!

toonvanstrijp avatar Jun 26 '22 16:06 toonvanstrijp

@d-michail that is a desirable message if you ask me. Though we maybe able to add in an option to disable the unsupported message without breaking anything

rubiin avatar Jun 28 '22 08:06 rubiin

closing due to inactivity

toonvanstrijp avatar Aug 30 '22 14:08 toonvanstrijp

This is a real need, please leave it open. i18n is not used when using @golevelup/nestjs-rabbitmq.

productdevbook avatar Oct 22 '22 18:10 productdevbook