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) {
|
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…
Reference in New Issue