Skip to content

Conversation

@hussein-awala
Copy link
Member

The BaseHook accepts a parameter logger_name to override the logger_name in the LoggingMixin. Unfortunately, some of the hooks don't provide this parameter to the parent class, and the only way to override the logger name is doing it on an extra step and overriding a protected class attribute:

hook = SomeHook(...)
hook._logger_name = "<some name>"

@potiuk potiuk merged commit 8e8c080 into apache:main Jan 9, 2024
@ephraimbuddy ephraimbuddy added this to the Airflow 2.8.1 milestone Jan 10, 2024
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Jan 10, 2024
ephraimbuddy pushed a commit that referenced this pull request Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants