InitExt / DatabaseUpgrade as part of the try/catch

This commit is contained in:
Shish 2020-03-18 20:26:52 +00:00
parent df3660fbcf
commit 3206110cf4

View file

@ -118,6 +118,7 @@ $_tracer->end();
* Send events, display output *
\* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
try {
// $_tracer->mark(@$_SERVER["REQUEST_URI"]);
$_tracer->begin(
$_SERVER["REQUEST_URI"] ?? "No Request",
@ -133,7 +134,6 @@ if (!SPEED_HAX) {
}
send_event(new InitExtEvent());
try {
// start the page generation waterfall
$user = _get_user();
send_event(new UserLoginEvent($user));
@ -157,8 +157,7 @@ try {
$database->rollback();
}
_fatal_error($e);
}
} finally {
$_tracer->end();
if (TRACE_FILE) {
if (
@ -171,3 +170,4 @@ if (TRACE_FILE) {
$_tracer->flush(TRACE_FILE);
}
}
}