this prevents log spam and it's rare that you actually want to very short events logged anyway
Signed-off-by: Robin Appelman <robin@icewind.nl>
/**
* Enforce the user theme. This will disable the user theming settings
- * This must be a valid ITheme ID.
+ * This must be a valid ITheme ID.
* E.g. light, dark, highcontrast, dark-highcontrast...
*/
'enforce_theme' => '',
/**
* Limit diagnostics event logging to events longer than the configured threshold in ms
+ *
+ * when set to 0 no diagnostics events will be logged
*/
'diagnostics.logging.threshold' => 0,
$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;
}