aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Template
diff options
context:
space:
mode:
authorFerdinand Thiessen <rpm@fthiessen.de>2022-05-30 11:49:17 +0200
committerFerdinand Thiessen <rpm@fthiessen.de>2022-06-06 13:37:04 +0200
commit1da424595f2eef2ee341081f9398e6aac6d842f3 (patch)
tree5c4288d759dd6148c494303d0f91d837d986e78a /lib/private/Template
parent31d48a7641f63da6c6744d23d4dedf448e7e1162 (diff)
downloadnextcloud-server-1da424595f2eef2ee341081f9398e6aac6d842f3.tar.gz
nextcloud-server-1da424595f2eef2ee341081f9398e6aac6d842f3.zip
Feature: Add and expose frontend loglevel
This adds a new config variable `loglevel_frontend`, allowing to configure the logging level of the browser part as requested in nextcloud/nextcloud-logger#141 If not configured the `loglevel` is used as the fallback. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Diffstat (limited to 'lib/private/Template')
-rw-r--r--lib/private/Template/JSConfigHelper.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Template/JSConfigHelper.php b/lib/private/Template/JSConfigHelper.php
index a7b9fd35fd8..5f23b471837 100644
--- a/lib/private/Template/JSConfigHelper.php
+++ b/lib/private/Template/JSConfigHelper.php
@@ -47,6 +47,7 @@ use OCP\IInitialStateService;
use OCP\IL10N;
use OCP\ISession;
use OCP\IURLGenerator;
+use OCP\ILogger;
use OCP\IUser;
use OCP\User\Backend\IPasswordConfirmationBackend;
use OCP\Util;
@@ -176,6 +177,9 @@ class JSConfigHelper {
'sharing.maxAutocompleteResults' => max(0, $this->config->getSystemValueInt('sharing.maxAutocompleteResults', Constants::SHARING_MAX_AUTOCOMPLETE_RESULTS_DEFAULT)),
'sharing.minSearchStringLength' => $this->config->getSystemValueInt('sharing.minSearchStringLength', 0),
'blacklist_files_regex' => FileInfo::BLACKLIST_FILES_REGEX,
+ 'loglevel' => $this->config->getSystemValue('loglevel_frontend',
+ $this->config->getSystemValue('loglevel', ILogger::WARN)
+ ),
];
$array = [