From bbc960fd3d721bdd40dd7d0758ab1ec0aa403a20 Mon Sep 17 00:00:00 2001 From: Vassyli Date: Tue, 25 Apr 2017 22:31:37 +0200 Subject: [PATCH] Added suggested change Fixes #95 --- src/ModuleManager.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ModuleManager.php b/src/ModuleManager.php index 389b45b..33d0d60 100644 --- a/src/ModuleManager.php +++ b/src/ModuleManager.php @@ -5,9 +5,11 @@ use Throwable; -use LotGD\Core\PackageConfiguration; +use LotGD\Core\Exceptions\ClassNotFoundException; use LotGD\Core\Exceptions\ModuleAlreadyExistsException; use LotGD\Core\Exceptions\ModuleDoesNotExistException; +use LotGD\Core\Exceptions\SubscriptionNotFoundException; +use LotGD\Core\Exceptions\WrongTypeException; use LotGD\Core\Models\Module as ModuleModel; /** @@ -79,7 +81,7 @@ public function register(LibraryConfiguration $library) $class::onRegister($this->g, $m); $m->save($this->g->getEntityManager()); } catch (Throwable $e) { - $this->g->getLogger()->debug("Calling {$class}::onRegister failed with exception: {$e->getMessage()}"); + $this->g->getLogger()->error("Calling {$class}::onRegister failed with exception: {$e->getMessage()}"); unset($m); } }