uranusjr commented on code in PR #62509:
URL: https://github.com/apache/airflow/pull/62509#discussion_r2929033869


##########
airflow-core/src/airflow/assets/manager.py:
##########
@@ -201,11 +202,7 @@ def register_asset_change(
             )
         )
         if not asset_model:
-            msg = f"AssetModel {asset} not found; cannot create asset event."
-            cls.logger().warning(msg)
-            # if there is a task_instance, write to task log
-            if task_instance is not None and hasattr(task_instance, "log"):
-                task_instance.log.warning(msg)
+            cls.logger().warning("AssetModel %s not found; cannot create asset 
event.", asset)

Review Comment:
   Why remove this?



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

Reply via email to