jerry
Suppress production errors
Hello All,
How do I ensure that crash dumps/errors in production are not sent to users?
In other languages such as Ruby or Rails, once the application is deployed and its environment set to production, errors are suppressed. The errors can be seen in the web server logs, but they’re not sent to the user. Instead, the user sees such responses like Internal server error, but the actual lines where the error occurred etc are not sent out to the user.
Any help will be much appreciated.
Regards,
Jerry
Most Liked
akoutmos
The configuration I think that you are looking for is :debug_errors. That should only be set to true in local development (Endpoint configuration docs Phoenix.Endpoint — Phoenix v1.6.10)
Hope that helps!
jerry
No, I didn’t.
I only required it at the top of the code.
Kindly let me try it out.
Thanks so much for the pointers.
I shall feedback on the outcome.
Kind regards,
Jerry







