Optimized connection to db

This commit is contained in:
2023-06-18 19:20:06 -04:00
parent 781858a905
commit 8d8eb84e20
13 changed files with 128 additions and 39 deletions

View File

@ -4,4 +4,10 @@ $app = require_once implode(DIRECTORY_SEPARATOR, [
'setup',
'app.php'
]);
$app->run();
try {
$app->run();
} catch (Exception $e) {
$app->getContainer()->get(Psr\Log\LoggerInterface::class)->warning($e);
} catch (Error $e) {
$app->getContainer()->get(Psr\Log\LoggerInterface::class)->error($e);
}