Level::Alert,
];
$logRecord =
new LogRecord(new \
DateTimeImmutable(), 'foo', Level::Alert, 'some message',
['exception' =>
new \
RuntimeException(''
)]);
yield 'log level stays same without shopware exception' =>
[ $logRecord,
[],
Level::Alert,
];
$logRecord =
new LogRecord(new \
DateTimeImmutable(), 'foo', Level::Alert, 'some message',
['exception' => ProductException::
categoryNotFound(Uuid::
randomHex())]);
yield 'log level stays same without error code mapping' =>
[ $logRecord,
[],
Level::Alert,
];
yield 'log level stays same without matching error code mapping' =>
[ $logRecord,
[ ProductException::PRODUCT_INVALID_CHEAPEST_PRICE_FACADE => 'notice',
],