mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
VolatileState: Swallow exceptions
The web interface must remain accessible if the connection to the Icinga Redis fails.
This commit is contained in:
parent
7c7437132a
commit
51945a6111
1 changed files with 6 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace Icinga\Module\Icingadb\Model\Behavior;
|
||||
|
||||
use Exception;
|
||||
use Icinga\Module\Icingadb\Common\IcingaRedis;
|
||||
use Icinga\Module\Icingadb\Redis\VolatileState as RedisState;
|
||||
use ipl\Orm\Contract\RetrieveBehavior;
|
||||
|
|
@ -24,6 +25,10 @@ class VolatileState implements RetrieveBehavior
|
|||
|
||||
public function retrieve(Model $model)
|
||||
{
|
||||
$this->getVolatileState()->fetch($model);
|
||||
try {
|
||||
$this->getVolatileState()->fetch($model);
|
||||
} catch (Exception $e) {
|
||||
// Pass
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue