Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure the "airflow.task" logger used for TaskInstancePydantic and Ta…
…skInstance (#37857) Airflow TIs are assumed to log to the "airflow.task" logger. TaskInstance was configuring this in the "reconstructor", a sqlalchemy thing that is processed on loading from DB. But there's no equivalent for Pydantic models, and when running a task with TaskInstancePydantic, the wrong logger was used (fully qualified class name). When looking for a solution, I saw that LoggingMixin will check `_logger_name` and if set will use it. This works for the pydantic model and seems better for TI anyway so I updated both.
- Loading branch information