Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable log in initialization process #14

Open
dubreuil534 opened this issue Jan 9, 2023 · 2 comments
Open

Disable log in initialization process #14

dubreuil534 opened this issue Jan 9, 2023 · 2 comments

Comments

@dubreuil534
Copy link

dubreuil534 commented Jan 9, 2023

Hi guys.

It is possible to disable nest-ddtrace log in the initialization process ? Like this one

[DecoratorInjector] Mapped {name of the service}.

I got over 40 logs in the startup process and these log make a lot of noise when I start the app

@Michael-M-Judd
Copy link

+1 On this - when you have a really large graphql app it creates one for every resolver which can be a lot. It's super noisy and doesn't provide a lot of value. IMO this this should be a logger.debug?

this.logger.log(`Mapped ${controller.name}.${methodName}`, this.constructor.name);

@mipopon
Copy link

mipopon commented Jun 9, 2023

I would love this to be an option too but in the mean time you can disable them on the logger.

Here is an article about it. Just add DecoratorInjector to contextToIgnore
https://dev.to/micalevisk/nestjs-tip-how-to-disable-initialization-logging-1b38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants