summaryrefslogtreecommitdiffstats
diff options
context:
space:
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;
}