Skip to content

Commit 4103f8b

Browse files
authored
#25459: Passing the full exception to logger
1 parent 0176c44 commit 4103f8b

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)