fix: introduce system env var, remove debug mode (#4658)

* fix: introduce system env var

* docs

* docs
This commit is contained in:
Dag 2025-08-08 01:38:12 +02:00 committed by GitHub
parent a128c05a97
commit 81ce9c9483
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 55 additions and 95 deletions

View file

@ -29,7 +29,7 @@ set_error_handler(function ($code, $message, $file, $line) use ($logger) {
// Deprecation messages and other masked errors are typically ignored here
return false;
}
if (Debug::isEnabled()) {
if (Configuration::getConfig('system', 'env') === 'dev') {
// This might be annoying, but it's for the greater good
throw new \ErrorException($message, 0, $code, $file, $line);
}