Skip to content

Commit

Permalink
Added suggested change
Browse files Browse the repository at this point in the history
Fixes #95
  • Loading branch information
Vassyli committed Apr 25, 2017
1 parent 7e58c72 commit bbc960f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ModuleManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit bbc960f

Please sign in to comment.