mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-10-15 08:44:40 +02:00
fix: introduce system env var, remove debug mode (#4658)
* fix: introduce system env var * docs * docs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user