mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:00: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);
|
||||
|
||||
try {
|
||||
/** @var ICanHandleRequests $module */
|
||||
return $this->dice->create($moduleClass, $this->parameters);
|
||||
} finally {
|
||||
$module = $this->dice->create($moduleClass, $this->parameters);
|
||||
|
||||
if ($this->dice_profiler_threshold > 0) {
|
||||
$dur = floatval(microtime(true) - $stamp);
|
||||
if ($dur >= $this->dice_profiler_threshold) {
|
||||
$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