Skip to content

Commit fdb0c7f

Browse files
committed
Added missing logging when saving a product fails
1 parent 1d40c9a commit fdb0c7f

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/Catalog/Controller/Adminhtml/Product

1 file changed

+1
-0
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/Save.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ public function execute()
144144
$this->messageManager->addSuccess(__('You duplicated the product.'));
145145
}
146146
} catch (\Magento\Framework\Exception\LocalizedException $e) {
147+
$this->_objectManager->get(\Psr\Log\LoggerInterface::class)->critical($e);
147148
$this->messageManager->addError($e->getMessage());
148149
$this->getDataPersistor()->set('catalog_product', $data);
149150
$redirectBack = $productId ? true : 'new';

0 commit comments

Comments
 (0)