GroupController: Since logging errors as well is usually a good idea, log errors

refs #8826
This commit is contained in:
Johannes Meyer 2015-05-13 13:58:48 +02:00
parent 07a5473616
commit 9eaa231c4f
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@
use \Exception; use \Exception;
use \Zend_Controller_Action_Exception; use \Zend_Controller_Action_Exception;
use Icinga\Application\Config; use Icinga\Application\Config;
use Icinga\Application\Logger;
use Icinga\Authentication\UserGroup\UserGroupBackend; use Icinga\Authentication\UserGroup\UserGroupBackend;
use Icinga\Authentication\UserGroup\UserGroupBackendInterface; use Icinga\Authentication\UserGroup\UserGroupBackendInterface;
use Icinga\Web\Controller; use Icinga\Web\Controller;
@ -81,6 +82,7 @@ class GroupController extends Controller
$this->setupPaginationControl($this->view->groups); $this->setupPaginationControl($this->view->groups);
} catch (Exception $e) { } catch (Exception $e) {
Notification::error($e->getMessage()); Notification::error($e->getMessage());
Logger::error($e);
} }
$this->view->backend = $backend; $this->view->backend = $backend;