Skip to content

Commit d26f434

Browse files
committed
Merge branch 'ENGCOM-6243-magento-magento2-25459' of github.com:magento-engcom/magento2ce into adobe-stock-integration
2 parents 6f07262 + 8278373 commit d26f434

File tree

1 file changed

+1
-5
lines changed
  • app/code/Magento/MediaGallery/Plugin/Wysiwyg/Images

1 file changed

+1
-5
lines changed

app/code/Magento/MediaGallery/Plugin/Wysiwyg/Images/Storage.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,7 @@ public function afterDeleteFile(StorageSubject $subject, StorageSubject $result,
8787
try {
8888
$this->deleteMediaAssetByPath->execute($relativePath);
8989
} catch (\Exception $exception) {
90-
$message = __(
91-
'An error occurred during media asset delete at wysiwyg: %error',
92-
['error' => $exception->getMessage()]
93-
);
94-
$this->logger->critical($message->render());
90+
$this->logger->critical($exception);
9591
}
9692

9793
return $result;

0 commit comments

Comments
 (0)