|
@@ -60,7 +60,7 @@ discard block |
|
|
block discarded – undo |
|
60
|
60
|
} |
|
61
|
61
|
|
|
62
|
62
|
public function isLoggingActivated(): bool { |
|
63
|
|
- $systemValue = (bool)$this->config->getValue('diagnostics.logging', false); |
|
|
63
|
+ $systemValue = (bool) $this->config->getValue('diagnostics.logging', false); |
|
64
|
64
|
|
|
65
|
65
|
if ($systemValue && $this->config->getValue('debug', false)) { |
|
66
|
66
|
return true; |
|
@@ -124,12 +124,12 @@ discard block |
|
|
block discarded – undo |
|
124
|
124
|
$duration = $event->getDuration(); |
|
125
|
125
|
$timeInMs = round($duration * 1000, 4); |
|
126
|
126
|
|
|
127
|
|
- $loggingMinimum = (int)$this->config->getValue('diagnostics.logging.threshold', 0); |
|
|
127
|
+ $loggingMinimum = (int) $this->config->getValue('diagnostics.logging.threshold', 0); |
|
128
|
128
|
if ($loggingMinimum > 0 && $timeInMs < $loggingMinimum) { |
|
129
|
129
|
return; |
|
130
|
130
|
} |
|
131
|
131
|
|
|
132
|
|
- $message = microtime() . ' - ' . $event->getId() . ': ' . $timeInMs . ' (' . $event->getDescription() . ')'; |
|
|
132
|
+ $message = microtime().' - '.$event->getId().': '.$timeInMs.' ('.$event->getDescription().')'; |
|
133
|
133
|
$this->logger->debug($message, ['app' => 'diagnostics']); |
|
134
|
134
|
} |
|
135
|
135
|
} |
Please login to merge, or discard this patch.