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

Capture warnings.warn and friends messages in logs #85875

Merged
merged 1 commit into from
May 18, 2023

Commits on May 18, 2023

  1. Capture warnings.warn and friends messages in logs

    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
    scop committed May 18, 2023
    Configuration menu
    Copy the full SHA
    69ce09e View commit details
    Browse the repository at this point in the history