Skip to content

Commit e691069

Browse files
author
Oleksii Korshenko
committed
MAGETWO-67523: Issue #5627: main.CRITICAL: Broken reference (Magento CE v2.1) #9092
- Merge Pull Request #9092 from malachy-mcconnnell/magento2:2.1-develop
2 parents b8b698b + 13988a0 commit e691069

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/internal/Magento/Framework/View/Layout/Data/Structure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function reorderChildElement($parentName, $childName, $offsetOrSibling, $
119119
$siblingParentName = $this->getParentId($sibling);
120120
if ($parentName !== $siblingParentName) {
121121
if ($this->state->getMode() === State::MODE_DEVELOPER) {
122-
$this->logger->critical(
122+
$this->logger->info(
123123
"Broken reference: the '{$childName}' tries to reorder itself towards '{$sibling}', but " .
124124
"their parents are different: '{$parentName}' and '{$siblingParentName}' respectively."
125125
);

lib/internal/Magento/Framework/View/Layout/ScheduledStructure/Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function scheduleElement(
201201
$scheduledStructure->setElementToBrokenParentList($key);
202202

203203
if ($this->state->getMode() === State::MODE_DEVELOPER) {
204-
$this->logger->critical(
204+
$this->logger->info(
205205
"Broken reference: the '{$name}' element cannot be added as child to '{$parentName}', " .
206206
'because the latter doesn\'t exist'
207207
);

lib/internal/Magento/Framework/View/Test/Unit/Layout/Data/StructureTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function testReorderChildElementLog($loggerExpects, $stateMode)
6464
->method('getMode')
6565
->willReturn($stateMode);
6666
$this->loggerMock->expects($loggerExpects)
67-
->method('critical')
67+
->method('info')
6868
->with(
6969
"Broken reference: the '{$childName}' tries to reorder itself towards '', but " .
7070
"their parents are different: '{$parentName}' and '' respectively."

lib/internal/Magento/Framework/View/Test/Unit/Layout/ScheduledStructure/HelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public function testScheduleElementLog($loggerExpects, $stateMode)
181181
->method('getMode')
182182
->willReturn($stateMode);
183183
$this->loggerMock->expects($loggerExpects)
184-
->method('critical')
184+
->method('info')
185185
->with(
186186
"Broken reference: the '{$key}' element cannot be added as child to '{$parentName}', " .
187187
'because the latter doesn\'t exist'

0 commit comments

Comments
 (0)