mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-29 14:28:47 +02:00
fix: introduce system env var, remove debug mode (#4658)
* fix: introduce system env var * docs * docs
This commit is contained in:
parent
a128c05a97
commit
81ce9c9483
12 changed files with 55 additions and 95 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue