aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2022-03-11 14:20:44 +0100
committerGitHub <noreply@github.com>2022-03-11 14:20:44 +0100
commit4ac4f4b0a6c4b00039b22dcc800551dd50006d08 (patch)
treee3c686bd049b52cb1954efcc0cbc21e2fdf093ce
parentb2075db3bd8d8218be30d8f70438268c6d4f12e3 (diff)
parent27f3aa5890ce8cc6ac142cac5d56d989c10537eb (diff)
downloadnextcloud-server-4ac4f4b0a6c4b00039b22dcc800551dd50006d08.tar.gz
nextcloud-server-4ac4f4b0a6c4b00039b22dcc800551dd50006d08.zip
Merge pull request #31538 from nextcloud/bug/noid/eventlogger-debug
Only log events when enabled in debug mode
-rw-r--r--lib/private/Diagnostics/EventLogger.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Diagnostics/EventLogger.php b/lib/private/Diagnostics/EventLogger.php
index 02867b3b4b7..35cef0be3f5 100644
--- a/lib/private/Diagnostics/EventLogger.php
+++ b/lib/private/Diagnostics/EventLogger.php
@@ -60,12 +60,13 @@ class EventLogger implements IEventLogger {
}
public function isLoggingActivated(): bool {
- if ($this->config->getValue('debug', false)) {
+ $systemValue = (bool)$this->config->getValue('diagnostics.logging', false);
+
+ if ($systemValue && $this->config->getValue('debug', false)) {
return true;
}
$isDebugLevel = $this->internalLogger->getLogLevel([]) === Log::DEBUG;
- $systemValue = (bool)$this->config->getValue('diagnostics.logging', false);
return $systemValue && $isDebugLevel;
}