Feroze Mohideen 2 лет назад
Родитель
Сommit
41d693ed92

+ 7 - 1
dashboard/src/main/home/app-dashboard/expanded-app/activity-feed/ActivityFeed.tsx

@@ -39,7 +39,13 @@ const ActivityFeed: React.FC<Props> = ({ chart, stackName, appData }) => {
 
   // remove this filter when https://linear.app/porter/issue/POR-1676/disable-porter-agent-code-for-cpu-alerts is resolved
   const isNotFilteredAppEvent = (event: PorterAppEvent) => {
-    return !(event.type === PorterAppEventType.APP_EVENT && (event.metadata?.short_summary?.includes("requesting more memory than is available") || event.metadata?.short_summary?.includes("requesting more CPU than is available")));
+    return !(event.type === PorterAppEventType.APP_EVENT &&
+      (
+        event.metadata?.short_summary?.includes("requesting more memory than is available")
+        || event.metadata?.short_summary?.includes("requesting more CPU than is available")
+        || event.metadata?.short_summary?.includes("non-zero exit code")
+      )
+    );
   }
 
   const getEvents = async () => {