Add file and line of logged menu item renderer exceptions

fixes #9696
This commit is contained in:
Eric Lippmann 2015-07-21 16:54:23 +02:00
parent 163911ffd7
commit ce2b686252
1 changed files with 7 additions and 1 deletions

View File

@ -118,7 +118,13 @@ class MenuRenderer extends RecursiveIteratorIterator
try {
return $child->getRenderer()->render($child);
} catch (Exception $e) {
Logger::error('Could not invoke custom renderer. Exception: '. $e->getMessage());
Logger::error(
'Could not invoke custom menu renderer. %s in %s:%d with message: %s',
get_class($e),
$e->getFile(),
$e->getLine(),
$e->getMessage()
);
}
}