mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
remove try block
This commit is contained in:
parent
bc76f2af67
commit
c5ca4df389
1 changed files with 9 additions and 9 deletions
|
@ -334,17 +334,17 @@ class Router
|
||||||
|
|
||||||
$stamp = microtime(true);
|
$stamp = microtime(true);
|
||||||
|
|
||||||
try {
|
/** @var ICanHandleRequests $module */
|
||||||
/** @var ICanHandleRequests $module */
|
$module = $this->dice->create($moduleClass, $this->parameters);
|
||||||
return $this->dice->create($moduleClass, $this->parameters);
|
|
||||||
} finally {
|
if ($this->dice_profiler_threshold > 0) {
|
||||||
if ($this->dice_profiler_threshold > 0) {
|
$dur = floatval(microtime(true) - $stamp);
|
||||||
$dur = floatval(microtime(true) - $stamp);
|
if ($dur >= $this->dice_profiler_threshold) {
|
||||||
if ($dur >= $this->dice_profiler_threshold) {
|
$this->logger->notice('Dice module creation lasts too long.', ['duration' => round($dur, 3), 'module' => $moduleClass, 'parameters' => $this->parameters]);
|
||||||
$this->logger->notice('Dice module creation lasts too long.', ['duration' => round($dur, 3), 'module' => $moduleClass, 'parameters' => $this->parameters]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $module;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue