dstandish commented on code in PR #40468:
URL: https://github.com/apache/airflow/pull/40468#discussion_r1671163440
##########
airflow/utils/log/task_context_logger.py:
##########
@@ -57,7 +88,7 @@ def __init__(self, component_name: str, call_site_logger:
Logger | None = None):
def _should_enable(self) -> bool:
if not conf.getboolean("logging", "enable_task_context_logger"):
return False
- if not getattr(self.task_handler, "supports_task_context_logging",
False):
+ if not self.task_handler:
Review Comment:
is it though? isn't it needed for backcompat?
--
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]