uranusjr commented on code in PR #45914:
URL: https://github.com/apache/airflow/pull/45914#discussion_r1962862307
##########
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:
Why only the first item?
--
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]