turbaszek commented on a change in pull request #14860:
URL: https://github.com/apache/airflow/pull/14860#discussion_r600012211



##########
File path: airflow/models/baseoperator.py
##########
@@ -1158,10 +1158,10 @@ def task_type(self) -> str:
         """@property: type of the task"""
         return self.__class__.__name__
 
-    def add_only_new(self, item_set: Set[str], item: str) -> None:
+    def add_only_new(self, item_set: Set[str], item: str, dag_id: str) -> None:
         """Adds only new items to item set"""
         if item in item_set:
-            self.log.warning('Dependency %s, %s already registered', self, 
item)
+            self.log.warning('Dependency %s, %s already registered for DAG: 
%s', self, item, dag_info)

Review comment:
       I think if we change `dag_info` to `dag_id` we should do this in both 
places




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to