toonvanstrijp / nestjs-i18n

The i18n module for nestjs.
https://nestjs-i18n.com
Other
625 stars 102 forks source link

How o disable the log of: WARN [I18nService] context type: necord not supported #619

Open NedcloarBR opened 4 months ago

NedcloarBR commented 4 months ago

Describe the bug

I'm using nestjs-i18n along with Necord to create my Discord bot and I would like to know if it's possible to disable this logging saying that the context is not supported image I tried disabling the log using logging: false in the parameters of the I18nModule.forRootAsync

edit: Every time the bot receives a message in the Discord API's messageCreate event, the log appears, so if the bot receives too many messages over its time online, the terminal gets polluted with that WARN

Reproduction

N-D-B/nestjs-i18n-issue

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (12) x64 AMD Ryzen 5 3600XT 6-Core Processor
    Memory: 11.09 GB / 15.59 GB
    Container: Yes
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 20.6.1 - ~/.nvm/versions/node/v20.6.1/bin/node
    Yarn: 4.1.1 - ~/.nvm/versions/node/v20.6.1/bin/yarn
    npm: 9.8.1 - ~/.nvm/versions/node/v20.6.1/bin/npm

Used Package Manager

yarn

Validations