From d4236f49d527b60408cb862c821db8fb39b39206 Mon Sep 17 00:00:00 2001
From: "Guan Ming(Wesley) Chiu"
<105915352+guan404ming@users.noreply.github.com>
Date: Thu, 12 Jun 2025 01:51:10 +0800
Subject: [PATCH] [v3-0-test] Refactor `structuredLog` structure and layout
(#51567) (cherry picked from commit b6db7a757b44b36bce821195bf4a5123aa62723f)
Co-authored-by: Guan Ming(Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
---
.../ui/src/components/renderStructuredLog.tsx | 54 +++++++++----------
1 file changed, 27 insertions(+), 27 deletions(-)
diff --git a/airflow-core/src/airflow/ui/src/components/renderStructuredLog.tsx b/airflow-core/src/airflow/ui/src/components/renderStructuredLog.tsx
index 122c68d3a1fed..ec1bc622f590d 100644
--- a/airflow-core/src/airflow/ui/src/components/renderStructuredLog.tsx
+++ b/airflow-core/src/airflow/ui/src/components/renderStructuredLog.tsx
@@ -124,25 +124,6 @@ export const renderStructuredLog = ({
return "";
}
- elements.push(
-
- {index}
- ,
- );
-
if (Boolean(timestamp)) {
elements.push("[", , "] ");
}
@@ -175,20 +156,20 @@ export const renderStructuredLog = ({
));
return (
-
-
+
+
{error.exc_type}: {error.exc_value}
-
+
{errorLines}
-
+
);
});
}
elements.push(
-
+
{addLinks(event)}
,
);
@@ -205,14 +186,33 @@ export const renderStructuredLog = ({
}
elements.push(
-
+
{details}
,
);
return (
-
- {elements}
+
+
+ {index}
+
+
+ {elements}
+
);
};