Skip to content

Extra Logging When Requesting A Product Via Repository Fails #40090

@asim-blueprintprep

Description

@asim-blueprintprep

Description

When using the ProductRepository with get or getById - and passing in a SKU or ID that is not found, the error message in the logs has no context of what SKU or ID was attempted to be fetched.

Expected behavior

The exception error message should contain the SKU or ID to provide more context when debugging issues.

Benefits

No response

Additional information

No response

Release note

No response

Metadata

Metadata

Assignees

Labels

Area: ProductComponent: UiIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for groomingReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

Status

Ready for Development

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions