Skip to content

Change DeprecationWarning to AirflowDeprecationWarning #22356

@eladkal

Description

@eladkal

Body

It's becoming hard to differentiate between all warnings raised in logs.
Airflow uses many packages that also raise warnings.

I suggest to create AirflowDeprecationWarning.
We can even have similar mechanism to sqlalchemy that has SADeprecationWarning and specifying the version this warning started from that way it will also be easier to keep track.
https://github.com/sqlalchemy/sqlalchemy/blob/769fa67d842035dd852ab8b6a26ea3f110a51131/lib/sqlalchemy/exc.py#L779

We can also have AirflowProviderDeprecationWarning to differentiate from Airflow core

Originally posted in #22333 (comment)

What do others think?

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Metadata

Metadata

Assignees

Labels

kind:taskA task that needs to be completed as part of a larger issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions