mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-09 13:34:38 +02:00
fix: move debug mode to config (#3324)
* fix: move debug mode to config * fix: also move debug_whitelist to .ini config * fix: move logic back to Debug class * docs * docs * fix: disable debug mode by default * fix: restore previous behavior for alerts * fix: center-align alert text
This commit is contained in:
parent
c5cd229445
commit
ee498eadf9
18 changed files with 121 additions and 158 deletions
|
@ -42,6 +42,7 @@ final class RssBridge
|
|||
);
|
||||
Logger::warning($text);
|
||||
if (Debug::isEnabled()) {
|
||||
// todo: extract to log handler
|
||||
print sprintf("<pre>%s</pre>\n", e($text));
|
||||
}
|
||||
});
|
||||
|
@ -59,6 +60,7 @@ final class RssBridge
|
|||
);
|
||||
Logger::error($message);
|
||||
if (Debug::isEnabled()) {
|
||||
// todo: extract to log handler
|
||||
print sprintf("<pre>%s</pre>\n", e($message));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue