Renderer: Log critical instead of error if no matching file renderer configured
This commit is contained in:
parent
ae744af814
commit
a59546baf8
|
@ -29,7 +29,7 @@ class Renderer
|
|||
}
|
||||
|
||||
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 '';
|
||||
|
|
|
@ -56,7 +56,7 @@ class RendererTest extends TestCase
|
|||
$loggerMock = $this->getMockForAbstractClass(LoggerInterface::class);
|
||||
$loggerMock
|
||||
->expects($this->once())
|
||||
->method('error');
|
||||
->method('critical');
|
||||
|
||||
$renderer->setLogger($loggerMock);
|
||||
|
||||
|
|
Loading…
Reference in New Issue