Skip to content

Commit

Permalink
Missed a code path
Browse files Browse the repository at this point in the history
  • Loading branch information
driusan committed Oct 25, 2022
1 parent 5d3d573 commit 5ccfd8f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Router/BaseRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,17 @@ public function handle(ServerRequestInterface $request) : ResponseInterface
->withAttribute("baseurl", $baseurl->__toString())
->withAttribute("CandID", $components[0]);
$module = \Module::factory("timepoint_list");
$mr = new ModuleRouter($module);

$requestloglevel = $logSettings->getRequestLogLevel();
if ($requestloglevel != "none") {
$module->setLogger(
new \LORIS\Log\ErrorLogLogger($requestloglevel)
);
} else {
$module->setLogger(new \PSR\Log\NullLogger);
}

$mr = new ModuleRouter($module);
return $ehandler->process($request, $mr);
}
}
Expand Down

0 comments on commit 5ccfd8f

Please # to comment.