FOSElasticaBundle icon indicating copy to clipboard operation
FOSElasticaBundle copied to clipboard

Client: log query on exception then rethrow it

Open 7ochem opened this issue 2 years ago • 0 comments

If an Elastica exception was thrown upon request, then make the request visible that caused it (on verbose console or in your logs), then rethrow the exception.

Example with corrupted request data on the console (calling php bin/console --env=dev -vvv fos:elastica:populate very verbose)

Before:

Screenshot from 2023-08-04 14-02-06 ❓ 🤷🏻‍♂️

After:

Screenshot from 2023-08-04 14-04-31 ❗ 🕵🏻‍♂️

7ochem avatar Aug 04 '23 12:08 7ochem