Log the route not found exception on a lower level

This should be logged but it is not that critical to wanner level 3

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2020-07-24 15:39:53 +02:00 committed by backportbot[bot]
parent 1cba7f917c
commit bb13f940f4
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ class Router implements IRouter {
$name = $this->fixLegacyRootName($name);
return $this->getGenerator()->generate($name, $parameters, $referenceType);
} catch (RouteNotFoundException $e) {
$this->logger->logException($e);
$this->logger->logException($e, ['level' => ILogger::INFO]);
return '';
}
}