mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Minor improvements (#723)
This commit is contained in:
parent
5870163c08
commit
d951ee0a84
3 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue