bbovenzi commented on code in PR #72901:
URL: https://github.com/apache/airflow/pull/72901#discussion_r4086590981


##########
airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/Logs.tsx:
##########
@@ -234,6 +235,24 @@ export const Logs = () => {
     wrap,
   };
 
+  const noLogsAlert =
+    taskInstance !== undefined &&
+    fetchedData !== undefined &&
+    !isLoadingLogs &&
+    error === null &&
+    logError === null &&
+    (tryNumber === 0 || parsedData.parsedLogs?.length === 0) ? (
+      <Alert data-testid="no-task-logs" status="info" 
title={translate("logs.noLogsTitle")}>
+        <Trans
+          components={{
+            AuditLogLink: <RouterLink to={getTaskInstanceLink(taskInstance, 
"events")} />,

Review Comment:
   Actually, in your use case did the audit log have anything useful recorded 
for that task instance when there were no logs?
   
   It might be better to link to the audit log on the dag level to activity 
happening outside of the TI too.



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