Skip to content

Conversation

@mmenozzi
Copy link

@mmenozzi mmenozzi commented Feb 1, 2023

With APP_DEBUG=0 (which is the default in the prod environment), if an exception occurs in the initial part of request processing (for example when the \Shopware\Storefront\Framework\Routing\Exception\SalesChannelMappingException thrown in the \Shopware\Storefront\Framework\Routing\RequestTransformer::transform() method) nothing is logged. The developer will see a 500 error page without any clue about the problem.

This is the kind of thing that wastes a lot of developers time.

This happens because in the very initial part of the request processing the \Symfony\Component\ErrorHandler\ErrorHandler is not configured with any logger. It will then be configured by the Symfony kernel boot with Monolog but this happens after initial request processing exceptions are eventually thrown.

See also this issue which is somehow related to this.

@CLAassistant
Copy link

CLAassistant commented Feb 1, 2023

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants