This is an automated email from the ASF dual-hosted git repository.

pierrejeambrun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 20146e543bc fix: Add .txt extension for log download function (#57991)
20146e543bc is described below

commit 20146e543bc1cc53ab58498649d1dace36b9a9ac
Author: LI,JHE-CHEN <[email protected]>
AuthorDate: Fri Nov 7 07:44:09 2025 -0500

    fix: Add .txt extension for log download function (#57991)
---
 airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/Logs.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/Logs.tsx 
b/airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/Logs.tsx
index 6215cdabd15..8344dbefb89 100644
--- a/airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/Logs.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/Logs.tsx
@@ -121,7 +121,7 @@ export const Logs = () => {
     const element = document.createElement("a");
 
     element.href = URL.createObjectURL(new Blob([logContent], { type: 
"text/plain" }));
-    element.download = 
`logs_${taskInstance?.dag_id}_${taskInstance?.dag_run_id}_${taskInstance?.task_id}_${taskInstance?.map_index}_${taskInstance?.try_number}`;
+    element.download = 
`logs_${taskInstance?.dag_id}_${taskInstance?.dag_run_id}_${taskInstance?.task_id}_${taskInstance?.map_index}_${taskInstance?.try_number}.txt`;
     document.body.append(element);
     element.click();
     element.remove();

Reply via email to