Added suggested change

Fixes #95
This commit is contained in:
Vassyli
2017-04-25 22:31:37 +02:00
parent 7e58c72526
commit bbc960fd3d
+4 -2
View File
@@ -5,9 +5,11 @@ namespace LotGD\Core;
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 @@ class ModuleManager
$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);
}
}