Debug Logging added

This commit is contained in:
Neshura 2022-12-11 16:44:15 +01:00
parent c1d6f5d62e
commit 3bd10e1f94
No known key found for this signature in database
GPG key ID: ACDF5B6EBECF6B0A

View file

@ -122,6 +122,10 @@ async function getStatus(entry: Service, containers: Dockerode.ContainerInfo[])
} }
// If container name is not missing the container is set to offline // If container name is not missing the container is set to offline
else if (entry.docker_container_name !== null) { 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"); console.warn("Container for " + entry.name + " could not be found");
entry.status = ServiceStatus.offline; entry.status = ServiceStatus.offline;
} }
@ -183,6 +187,8 @@ function useServices() {
const { data: fullData, error: fullError } = useSWR((initialData && containerData) ? [containerData, initialData] : null, fetchFullDataArray) const { data: fullData, error: fullError } = useSWR((initialData && containerData) ? [containerData, initialData] : null, fetchFullDataArray)
const loadingFull = !fullData && !fullError const loadingFull = !fullData && !fullError
console.log(fullError) // DEBUG
return { return {
initialData, initialData,
fullData, fullData,