From 3bd10e1f94c9e4d132551e20550b170c7acb8cdb Mon Sep 17 00:00:00 2001 From: Neshura Date: Sun, 11 Dec 2022 16:44:15 +0100 Subject: [PATCH] Debug Logging added --- pages/services.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/services.tsx b/pages/services.tsx index 60bdb97..1bcfe96 100644 --- a/pages/services.tsx +++ b/pages/services.tsx @@ -122,6 +122,10 @@ async function getStatus(entry: Service, containers: Dockerode.ContainerInfo[]) } // If container name is not missing the container is set to offline else if (entry.docker_container_name !== null) { + // DEBUG + console.log(entry.docker_container_name); + console.log(container.Names); + // DEBUG console.warn("Container for " + entry.name + " could not be found"); entry.status = ServiceStatus.offline; } @@ -183,6 +187,8 @@ function useServices() { const { data: fullData, error: fullError } = useSWR((initialData && containerData) ? [containerData, initialData] : null, fetchFullDataArray) const loadingFull = !fullData && !fullError + console.log(fullError) // DEBUG + return { initialData, fullData,