fix: Enables PHP log output when running in development

This commit is contained in:
Vincent Mahnke 2025-11-01 21:27:47 +01:00
commit 907c20bad2
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469
5 changed files with 17 additions and 3 deletions

3
.gitignore vendored
View file

@ -4,3 +4,6 @@ lastStatisticsUpdate.txt
log.*
state.txt
migrations
# created when running development environment
mariadb/**

View file

@ -6,6 +6,8 @@ services:
web:
volumes:
- ./web/www/sunders:/var/www/html:Z
environment:
APP_ENV: development
data_handler:
volumes:

View file

@ -1,5 +1,4 @@
<?php
error_reporting(0);
// Convert the content of the symbology JSON file to HTML.
function addListSymbology($jsonPath, $i18n, $i18nDefault) {
global $pathToWebFolder;

View file

@ -1,5 +1,4 @@
<?php
error_reporting(0);
include $pathToWebFolder.'config.php';
define('MAX_POINTS_FOR_QUICKHULL', 3000);

View file

@ -13,4 +13,15 @@
define('MYSQL_PASSWORD', getenv('CAMERA_SELECT_USER_PASSWORD') ?: '');
define('USE_STATISTICS', false);
$environment = getenv('APP_ENV') ?: 'production';
if ($environment === 'development') {
ini_set('display_errors', 1);
error_reporting(E_ALL);
return;
}
ini_set('display_errors', 0);
error_reporting(0);
?>