klinge / sl-webapp

Members and activities database for a sailing club
0 stars 0 forks source link

Set error reporting depending on env-variable. #30

Closed klinge closed 4 days ago

klinge commented 4 days ago

We want all error reporting in development, but not in production.

Now all view pages has: error_reporting(E_ALL); ini_set('display_errors', 'On');

Solution: set dev/prod in the .env file and use it to set error reporting correctly

klinge commented 4 days ago

Closed by commit cd94bbc3580090ca8bd2a042716227190cb81d6d