-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
How do I turn off logging? #1376
Comments
This is my question too. |
Try this after importing nemo modules: import logging
logging.getLogger('nemo_logger').setLevel(logging.ERROR) you can choose the logging level from https://docs.python.org/3/library/logging.html#levels |
This does the trick, prior to importing anything from NeMo:
This won't get rid of some noise about Kaldi:
To get rid of the Kaldi warning, download Kaldi and set KALDI_ROOT. So something like this prior to running the above script (you can put
|
@burgil the initial question was posed by me for my needs. Turning off all logging output satisfies my original question. How do you see that as "poor" when I am the person asking and this method does exactly what I wanted it to? Poor for who? Another way of phrasing your comment would be to say "I see how this works for you, but for my needs that would cut out too much information, so for my application I would prefer to omit critical". |
If you want to disable only NeMo loggings and not all of them, just use this:
|
How do I turn off all the logging messages in NeMo? For example all of this:
The text was updated successfully, but these errors were encountered: