We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0dcd09 commit 40d17c6Copy full SHA for 40d17c6
app/code/Magento/CatalogInventory/Model/Stock/StockItemRepository.php
@@ -192,7 +192,7 @@ public function save(\Magento\CatalogInventory\Api\Data\StockItemInterface $stoc
192
193
$this->resource->save($stockItem);
194
} catch (\Exception $exception) {
195
- $this->psrLogger->error($exception);
+ $this->psrLogger->error($exception->getMessage());
196
throw new CouldNotSaveException(__('The stock item was unable to be saved. Please try again.'), $exception);
197
}
198
return $stockItem;
0 commit comments