kd2org / karadav

Lightweight NextCloud compatible WebDAV server
https://fossil.kd2.org/karadav/
GNU Affero General Public License v3.0
155 stars 14 forks source link

Initialize ErrorManager based on RUN_MODE environment variable. #17

Closed ameyp closed 2 years ago

ameyp commented 2 years ago

I'd like to deploy this in production, but don't want error backtraces to be readily available to anyone that encounters them.

bohwaz commented 2 years ago

Thanks for your PR, I changed slightly to make it more simple (true/false instead of production/development) and also expose other features of ErrorManager.

ameyp commented 2 years ago

Looks good to me, thank you!