Replies: 2 comments 12 replies
-
It does not directly answer your question, but can't you do something like: logger = logging.getLogger("flask") # Or whatever web app framework you're using
logger.setLevel(logging.CRITICAL) # Basically mutes the logger of the 'flask' module |
Beta Was this translation helpful? Give feedback.
1 reply
-
I can add a mutex in stdout_redirector, would that help? |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wonder if we can somehow protect stdout from being written to from other threads.
For example, I run an http server that MUST run in a separate thread, I have no influence on whether the http library will use
logger.warning(...)
, which by default writes to stdout.Beta Was this translation helpful? Give feedback.
All reactions