You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by bb...@apache.org on 2025/03/28 13:49:53 UTC

(airflow) branch main updated: AIP-38 Fix log warnings (#48490)

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

bbovenzi 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 7af0319ba16 AIP-38 Fix log warnings (#48490)
7af0319ba16 is described below

commit 7af0319ba16749f4aea78085dfe7823f321d262a
Author: Pierre Jeambrun <pi...@gmail.com>
AuthorDate: Fri Mar 28 14:49:47 2025 +0100

    AIP-38 Fix log warnings (#48490)
---
 .../src/airflow/ui/src/components/renderStructuredLog.tsx   | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/airflow-core/src/airflow/ui/src/components/renderStructuredLog.tsx b/airflow-core/src/airflow/ui/src/components/renderStructuredLog.tsx
index 87d364aa466..b5c7ce91fd8 100644
--- a/airflow-core/src/airflow/ui/src/components/renderStructuredLog.tsx
+++ b/airflow-core/src/airflow/ui/src/components/renderStructuredLog.tsx
@@ -126,12 +126,9 @@ export const renderStructuredLog = ({
   if (errorDetail !== undefined) {
     details = (errorDetail as Array<ErrorDetail>).map((error) => {
       const errorLines = error.frames.map((frame) => (
-        <chakra.p key="test">
-          File{" "}
-          <chakra.span color="fg.info" key="test">
-            {JSON.stringify(frame.filename)}
-          </chakra.span>
-          , line {frame.lineno} in {frame.name}
+        <chakra.p key={`frame-${frame.name}-${frame.filename}-${frame.lineno}`}>
+          File <chakra.span color="fg.info">{JSON.stringify(frame.filename)}</chakra.span>, line{" "}
+          {frame.lineno} in {frame.name}
         </chakra.p>
       ));
 
@@ -172,8 +169,8 @@ export const renderStructuredLog = ({
   );
 
   return (
-    <chakra.p key={index} lineHeight={1.5}>
+    <chakra.div key={index} lineHeight={1.5}>
       {elements}
-    </chakra.p>
+    </chakra.div>
   );
 };