Minor improvements (#723)

This commit is contained in:
Roman Kelesidis 2023-05-25 13:26:58 +07:00 committed by GitHub
commit d951ee0a84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,5 @@
# Common params
APP_ENV=local
APP_DEBUG=false
APP_CRON_ENABLED=true
# Database credentials

View file

@ -80,6 +80,7 @@ define('LOG_MAX_SIZE', 1048576); // bytes
// Error reporting
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
ini_set('log_errors', 1);
ini_set('error_log', LOG_DIR . '/php_errors.log'); // path to log file enabled only if log_errors == 1 (native)
define('WHOOPS_LOG_FILE', LOG_DIR . '/php_whoops.log'); // log file enabled only if log_errors == 1 (whoops)

View file

@ -102,6 +102,7 @@ function bb_setcookie($name, $val, int $lifetime = COOKIE_PERSIST, bool $httponl
if (DBG_USER) {
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
} else {
unset($_COOKIE['explain']);
}