From a54c84a138a9706c2e50ce3116395ae54a266d66 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Sat, 7 Feb 2026 02:10:55 -0600 Subject: [PATCH 1/2] feat(logs): display error messages for containers in dashboard logs - Added error message display for containers in both the application and stack log views when using the "swarm" option. - Updated Docker command to include error information for containers, enhancing visibility into container issues. --- .../components/dashboard/application/logs/show.tsx | 9 +++++++++ .../components/dashboard/compose/logs/show-stack.tsx | 7 +++++++ packages/server/src/services/docker.ts | 10 ++++++++-- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/apps/dokploy/components/dashboard/application/logs/show.tsx b/apps/dokploy/components/dashboard/application/logs/show.tsx index be3e91bf3..019cfd943 100644 --- a/apps/dokploy/components/dashboard/application/logs/show.tsx +++ b/apps/dokploy/components/dashboard/application/logs/show.tsx @@ -171,6 +171,15 @@ export const ShowDockerLogs = ({ appName, serverId }: Props) => { + {option === "swarm" && + services?.find((c) => c.containerId === containerId)?.error && ( +
+ Error: + { + services.find((c) => c.containerId === containerId)?.error + } +
+ )} { + {option === "swarm" && + services?.find((c) => c.containerId === containerId)?.error && ( +
+ Error: + {services.find((c) => c.containerId === containerId)?.error} +
+ )} Date: Sat, 7 Feb 2026 08:11:32 +0000 Subject: [PATCH 2/2] [autofix.ci] apply automated fixes --- .../components/dashboard/application/logs/show.tsx | 12 +++++------- .../components/dashboard/compose/logs/show-stack.tsx | 10 +++++----- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/apps/dokploy/components/dashboard/application/logs/show.tsx b/apps/dokploy/components/dashboard/application/logs/show.tsx index 019cfd943..d1f5b1669 100644 --- a/apps/dokploy/components/dashboard/application/logs/show.tsx +++ b/apps/dokploy/components/dashboard/application/logs/show.tsx @@ -173,13 +173,11 @@ export const ShowDockerLogs = ({ appName, serverId }: Props) => { {option === "swarm" && services?.find((c) => c.containerId === containerId)?.error && ( -
- Error: - { - services.find((c) => c.containerId === containerId)?.error - } -
- )} +
+ Error: + {services.find((c) => c.containerId === containerId)?.error} +
+ )} { {option === "swarm" && services?.find((c) => c.containerId === containerId)?.error && ( -
- Error: - {services.find((c) => c.containerId === containerId)?.error} -
- )} +
+ Error: + {services.find((c) => c.containerId === containerId)?.error} +
+ )}