luckyframework / lucky

A full-featured Crystal web framework that catches bugs for you, runs incredibly fast, and helps you write code that lasts.
https://luckyframework.org
MIT License
2.57k stars 156 forks source link

Make error logging an optional config to turn off #1768

Closed jwoertink closed 10 months ago

jwoertink commented 1 year ago

Some devs may not care about seeing the stacktrace in the logs for error messages. Of course, I think this should be turned on by default, but a simple habitat config that lets you turn that off would be a nice option.

https://github.com/luckyframework/lucky/blob/33e9d664605c41d09c29c072929393d7907d9505/src/lucky/error_handler.cr#L20