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

main
Igor Scheller 5 years ago committed by msquare
parent ae744af814
commit a59546baf8

@ -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 '';

@ -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);

Loading…
Cancel
Save