From 3f6358c85c89c3a0188b8237adc8d3b55dde356e Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 10 Dec 2021 21:18:43 +0100 Subject: [PATCH] Add round --- src/App/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/Router.php b/src/App/Router.php index 90c5bcfad9..ffd1c03bd0 100644 --- a/src/App/Router.php +++ b/src/App/Router.php @@ -342,7 +342,7 @@ class Router if ($this->dice_profiler_threshold > 0) { $dur = floatval(microtime(true) - $stamp); if ($dur >= $this->dice_profiler_threshold) { - $this->logger->warning('Dice module creation lasts too long.', ['duration' => $dur, 'module' => $module_class, 'parameters' => $module_parameters]); + $this->logger->warning('Dice module creation lasts too long.', ['duration' => round($dur, 3), 'module' => $module_class, 'parameters' => $module_parameters]); } } }