Fix: log error when getting services from Docker server fails (#3147)

pull/3156/head
she11sh0cked 8 months ago committed by GitHub
parent edc38c93e2
commit 556450c8de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -117,6 +117,8 @@ export async function servicesFromDocker() {
return { server: serverName, services: discovered.filter((filteredService) => filteredService) };
} catch (e) {
logger.error("Error getting services from Docker server '%s': %s", serverName, e);
// a server failed, but others may succeed
return { server: serverName, services: [] };
}

Loading…
Cancel
Save