Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Capture warnings.warn and friends messages in logs (#85875)
The default behavior of these warnings is to go to stderr, which in some setups goes easily unnoticed. For example in Docker based ones, they end up only in the container logs, and not e.g. in the HA log. Capture these to make them available in logs where other such messages are, and to make them subject to filtering as usual. https://docs.python.org/3/library/logging.html#logging.captureWarnings
- Loading branch information