mhenc commented on code in PR #28476:
URL: https://github.com/apache/airflow/pull/28476#discussion_r1054115673


##########
airflow/api_internal/endpoints/rpc_api_endpoint.py:
##########
@@ -68,7 +70,10 @@ def internal_airflow_api(
 
     log.debug("Calling method %.", {method_name})
     try:
-        output = handler(**params)
+        output = handler(
+            **params,
+            log=logging.getLogger(f"airflow.internal_api.{method_name}"),

Review Comment:
   I hoped that we can detect that the method has "log" argument and add it 
then.
   
   If it's not possible to detect then  we can send addition parameter from 
client(like "inject_log=true") and when seen on server-side then add "log" to 
params 



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