mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 01:55:21 +02:00
refactor: change the way dependencies are wired (#4194)
* refactor: change the way dependencies are setup * lint
This commit is contained in:
parent
6ec9193546
commit
4faaa79101
10 changed files with 93 additions and 81 deletions
|
@ -1,6 +1,7 @@
|
|||
<h1 align="center">Warning!</h1>
|
||||
|
||||
Enabling debug mode on a public server may result in malicious clients retrieving sensitive data about your server and possibly gaining access to it. Do not enable debug mode on a public server, unless you understand the implications of your doing!
|
||||
Enabling debug mode on a public server may result in malicious clients retrieving sensitive data about your server and possibly gaining access to it.
|
||||
Do not enable debug mode on a public server, unless you understand the implications of your doing!
|
||||
|
||||
***
|
||||
|
||||
|
@ -20,14 +21,3 @@ _Notice_:
|
|||
* The bridge whitelist still applies! (debug mode does **not** enable all bridges)
|
||||
|
||||
RSS-Bridge will give you a visual feedback when debug mode is enabled.
|
||||
|
||||
While debug mode is active, RSS-Bridge will write additional data to your servers `error.log`.
|
||||
|
||||
Debug mode is controlled by the static class `Debug`. It provides three core functions:
|
||||
|
||||
* `Debug::isEnabled()`: Returns `true` if debug mode is enabled.
|
||||
* `Debug::log($message)`: Adds a message to `error.log`. It takes one parameter, which can be anything.
|
||||
|
||||
Example: `Debug::log('Hello World!');`
|
||||
|
||||
**Notice**: `Debug::log($message)` calls `Debug::isEnabled()` internally. You don't have to do that manually.
|
Loading…
Add table
Add a link
Reference in a new issue