Renderer: Log critical instead of error if no matching file renderer configured

This commit is contained in:
Igor Scheller 2020-05-10 16:01:30 +02:00 committed by msquare
parent ae744af814
commit a59546baf8
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class Renderer
} }
if ($this->logger) { if ($this->logger) {
$this->logger->error('Unable to find a renderer for template file "{file}"', ['file' => $template]); $this->logger->critical('Unable to find a renderer for template file "{file}"', ['file' => $template]);
} }
return ''; return '';

View File

@ -56,7 +56,7 @@ class RendererTest extends TestCase
$loggerMock = $this->getMockForAbstractClass(LoggerInterface::class); $loggerMock = $this->getMockForAbstractClass(LoggerInterface::class);
$loggerMock $loggerMock
->expects($this->once()) ->expects($this->once())
->method('error'); ->method('critical');
$renderer->setLogger($loggerMock); $renderer->setLogger($loggerMock);