nestjs-i18n
nestjs-i18n copied to clipboard
warning logs on unrecognised context type
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 this isn't possible yet. But feel free to make a PR for it!
@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
closing due to inactivity
This is a real need, please leave it open. i18n is not used when using @golevelup/nestjs-rabbitmq
.