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


##########
airflow/api_connexion/endpoints/log_endpoint.py:
##########
@@ -115,11 +115,14 @@ def get_log(
     # return_type would be either the above two or None
     logs: Any
     if return_type == "application/json" or return_type is None:  # default
-        logs, metadata = task_log_reader.read_log_chunks(ti, task_try_number, 
metadata)
-        logs = logs[0] if task_try_number is not None else logs
+        hosts, log_streams, metadata = task_log_reader.read_log_chunks(ti, 
task_try_number, metadata)
+        host = f"{hosts[0] or ''}\n"

Review Comment:
   Hi @uranusjr, is the explanation here clear enough, or is there anything 
else I should adjust before merging the PR? Thanks!



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