display warning if domaincheck container could not be started instead of bugging out

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-07-19 14:31:45 +02:00
parent 70b46093ab
commit 54d9181f14
4 changed files with 15 additions and 3 deletions

View file

@ -255,7 +255,11 @@ class DockerController
}
$this->StopDomaincheckContainer();
$this->PerformRecursiveContainerStart($id);
try {
$this->PerformRecursiveContainerStart($id);
} catch (\Exception $e) {
error_log('Could not start domaincheck container: ' . $e->getMessage());
}
// Cache the start for 10 minutes
apcu_add($cacheKey, '1', 600);