zachliu commented on PR #9208: URL: https://github.com/apache/airflow/pull/9208#issuecomment-1234518368
in case someone is in the same boat: i used a few deprecated operators and wanted to see the warning msgs. but i couldn't see the `DeprecationWarning` in the dag parsing logs at `~/logs/scheduler/latest/<dag_name>.py.log` and i only saw `DeprecationWarning` in the task logs this is because: 1. the `filterwarnings` in configuration.py enables warning msgs in the tasks executed by airflow 2. the env var `PYTHONDEVMODE=1` enables warning msgs in the airflow environment (such as dag parsing) `PYTHONDEVMODE=1` may supersede the `filterwarnings` here, i'm not 100% sure -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
