aboutsummaryrefslogtreecommitdiff
path: root/lib/Configuration.php
diff options
context:
space:
mode:
authorGravatar LogMANOriginal <LogMANOriginal@users.noreply.github.com> 2019-10-31 18:49:45 +0100
committerGravatar GitHub <noreply@github.com> 2019-10-31 18:49:45 +0100
commit1022b5fdf9f68424885ff6f8b923d5762406a201 (patch)
tree0dd96c78b54fee13fa8bf1d6f3267f164cf0bba5 /lib/Configuration.php
parente8536ac1b2f367905984730b43d4507276a9da1b (diff)
downloadrss-bridge-1022b5fdf9f68424885ff6f8b923d5762406a201.tar.gz
rss-bridge-1022b5fdf9f68424885ff6f8b923d5762406a201.tar.zst
rss-bridge-1022b5fdf9f68424885ff6f8b923d5762406a201.zip
core: Add an option to suppress error reporting (#1179)
Error reporting currently takes place for each error. This can result in many error messages if a server has connectivity issues (i.e. when it re-connects to the internet every 24 hours). This commit adds a new option to the configuration file to define the number of error reports to suppress before returning an error message to the user. Error reports are cached and therefore automatically purged after 24 hours. A successful bridge request does **not** clear the error count as sporadic issues can be the result of actual problems on the server. The implementation currently makes no assumption on the type of error, which means it also suppresses bridge errors in debug mode. The default value is, however, set to 1 which means all errors are reported. References #994
Diffstat (limited to 'lib/Configuration.php')
-rw-r--r--lib/Configuration.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Configuration.php b/lib/Configuration.php
index 969e9bac..8978ea70 100644
--- a/lib/Configuration.php
+++ b/lib/Configuration.php
@@ -204,6 +204,10 @@ final class Configuration {
if(!is_string(self::getConfig('error', 'output')))
self::reportConfigurationError('error', 'output', 'Is not a valid String');
+ if(!is_numeric(self::getConfig('error', 'report_limit'))
+ || self::getConfig('error', 'report_limit') < 1)
+ self::reportConfigurationError('admin', 'report_limit', 'Value is invalid');
+
}
/**
encies Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/bench/react-hello-world/react-hello-world.jsx (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-08-17Update nodejs compat docs with ttyGravatar Colin McDonnell 1-1/+1
2023-08-17Improve test documentationGravatar Colin McDonnell 2-24/+63
2023-08-17Update Astro guideGravatar Colin McDonnell 1-1/+5
2023-08-17Allow IncomingRequest.req to be overwritten. (#4154)Gravatar dave caruso 3-8/+21
2023-08-17Fix(node:fs): add buffer parameter in fs.read callback. (#4191)Gravatar Ai Hoshino 3-5/+151
2023-08-17refactor: move HTMLRewriter to c++ bindings (#4193)Gravatar Brúnó Salomon 16-1127/+4961
2023-08-17Fix description for executables pageGravatar Colin McDonnell 1-1/+1