forked from kamba4/sunders
fix: Enables PHP log output when running in development
This commit is contained in:
parent
adab9b3175
commit
907c20bad2
5 changed files with 17 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -4,3 +4,6 @@ lastStatisticsUpdate.txt
|
|||
log.*
|
||||
state.txt
|
||||
migrations
|
||||
|
||||
# created when running development environment
|
||||
mariadb/**
|
||||
|
|
@ -6,6 +6,8 @@ services:
|
|||
web:
|
||||
volumes:
|
||||
- ./web/www/sunders:/var/www/html:Z
|
||||
environment:
|
||||
APP_ENV: development
|
||||
|
||||
data_handler:
|
||||
volumes:
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
error_reporting(0);
|
||||
include $pathToWebFolder.'config.php';
|
||||
|
||||
define('MAX_POINTS_FOR_QUICKHULL', 3000);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue