Skip to content

Commit

Permalink
ensure logger is created in module class
Browse files Browse the repository at this point in the history
  • Loading branch information
driusan committed Oct 24, 2022
1 parent 3f142d5 commit 7fff15b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions php/libraries/Module.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ abstract class Module extends \LORIS\Router\PrefixRouter
string $name,
string $moduledir
) {
$loglevel = $loris->getConfiguration()
->getLogSettings()
->getRequestLogLevel();

$this->logger = new \LORIS\Log\ErrorLogLogger($loglevel);

parent::__construct(
new \ArrayIterator(
[
Expand Down

0 comments on commit 7fff15b

Please # to comment.