mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
refactor: change the way dependencies are wired (#4194)
* refactor: change the way dependencies are setup * lint
This commit is contained in:
@@ -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.
|
Reference in New Issue
Block a user