jason810496 commented on code in PR #55116:
URL: https://github.com/apache/airflow/pull/55116#discussion_r2313859662


##########
airflow-core/src/airflow/api_fastapi/logging/decorators.py:
##########
@@ -98,6 +98,9 @@ async def log_action(
             request_body = {}
             masked_body_json = {}
 
+        if request_body.get("dry_run"):

Review Comment:
   
   How about validating the route name as well instead of just checking the 
`dry_run` field only? With validating the route name, we can ensure only the 
`clear_dag_run` and `post_clear_task_instances` routes with `dry_run=True` 
condition will skip the audit log.



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