brefphp / logger

All you need to log with Bref on AWS Lambda.
https://bref.sh/docs/environment/logs.html
MIT License
34 stars 3 forks source link

Use proper methods to stringify exception #8

Open Deltachaos opened 1 year ago

Deltachaos commented 1 year ago

The current process to stringify exceptions does not produce the same output as if the exception would not have been catched. Especially the lack of parent exceptions makes it very difficult to debug.

mnapoli commented 1 year ago

Oh that's brilliant!

@Deltachaos just to be clear, can you confirm that this will print the exception in exactly the same way that PHP prints uncaught exceptions?