Skip to content

Commit bd18033

Browse files
ENGCOM-6243: Added MediaGallery and MediaGalleryApi modules #25459
- Merge Pull Request #25459 from sivaschenko/magento2:media-gallery - Merged commits: 1. 9d0f830 2. 8132d97 3. 68e75ed 4. ba981ec 5. 33481d0 6. df66cf8 7. 8fd37b5 8. 0176c44 9. 4103f8b
2 parents 5aa1ce3 + 4103f8b commit bd18033

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)