summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-05-16 09:52:23 +0000
committerGitHub <noreply@github.com>2022-05-16 09:52:23 +0000
commite700c3cd33d540e8148f7a5c911bf20f030e69fc (patch)
treed2c35ad11b2e8e6285713036cfe132a8a41b217b /lib
parentfd576b568cdfba3f64a35b5bc57a16141f234899 (diff)
parenteda997f2bd6e969753ca90c400b790427b2bf684 (diff)
downloadnextcloud-server-e700c3cd33d540e8148f7a5c911bf20f030e69fc.tar.gz
nextcloud-server-e700c3cd33d540e8148f7a5c911bf20f030e69fc.zip
Merge pull request #32382 from nextcloud/event-logger-log-minimum
only log diagnostic events if a treshhold is set
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Diagnostics/EventLogger.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Diagnostics/EventLogger.php b/lib/private/Diagnostics/EventLogger.php
index c7b89002ea9..7b9bd9630ab 100644
--- a/lib/private/Diagnostics/EventLogger.php
+++ b/lib/private/Diagnostics/EventLogger.php
@@ -126,7 +126,7 @@ class EventLogger implements IEventLogger {
$timeInMs = round($duration * 1000, 4);
$loggingMinimum = (int)$this->config->getValue('diagnostics.logging.threshold', 0);
- if ($loggingMinimum > 0 && $timeInMs < $loggingMinimum) {
+ if ($loggingMinimum === 0 || $timeInMs < $loggingMinimum) {
return;
}