Skip to content
Advertisement

How to disable logging on the standard error stream?

How to disable logging on the standard error stream in Python? This does not work:

JavaScript

Advertisement

Answer

I found a solution for this:

JavaScript

This will prevent logging from being send to the upper logger that includes the console logging.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement