GitHub user ashb added a comment to the discussion: Airflow 3.1.0 Advanced Logging and Log Suppression
The `py.warnings` one is probably best silenced by setting [`PYTHONWARNINGS`](https://docs.python.org/3/using/cmdline.html#envvar-PYTHONWARNINGS) to the right value The user defined logging hasn't been effective since 3.0, and I forgot to update the docs. Given our docs show this example, I'll look at backporting https://github.com/apache/airflow/pull/55850 in to 3.1.2 (or 3.1.1, but I think I'll miss the cut-off for that). Once that lands you would be able to set this with the following config option: ```bash AIRFLOW__LOGGING__NAMESPACE_LEVELS='botocore.credentials=warning airflow.models.dagbag.DagBag=warning py.warnings=error' ``` GitHub link: https://github.com/apache/airflow/discussions/56377#discussioncomment-14699445 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
