InitExt / DatabaseUpgrade as part of the try/catch
This commit is contained in:
parent
df3660fbcf
commit
3206110cf4
1 changed files with 27 additions and 27 deletions
22
index.php
22
index.php
|
@ -118,22 +118,22 @@ $_tracer->end();
|
|||
* Send events, display output *
|
||||
\* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
|
||||
//$_tracer->mark(@$_SERVER["REQUEST_URI"]);
|
||||
$_tracer->begin(
|
||||
try {
|
||||
// $_tracer->mark(@$_SERVER["REQUEST_URI"]);
|
||||
$_tracer->begin(
|
||||
$_SERVER["REQUEST_URI"] ?? "No Request",
|
||||
[
|
||||
"user"=>$_COOKIE["shm_user"] ?? "No User",
|
||||
"ip"=>$_SERVER['REMOTE_ADDR'] ?? "No IP",
|
||||
"user_agent"=>$_SERVER['HTTP_USER_AGENT'] ?? "No UA",
|
||||
]
|
||||
);
|
||||
);
|
||||
|
||||
if (!SPEED_HAX) {
|
||||
if (!SPEED_HAX) {
|
||||
send_event(new DatabaseUpgradeEvent());
|
||||
}
|
||||
send_event(new InitExtEvent());
|
||||
}
|
||||
send_event(new InitExtEvent());
|
||||
|
||||
try {
|
||||
// start the page generation waterfall
|
||||
$user = _get_user();
|
||||
send_event(new UserLoginEvent($user));
|
||||
|
@ -157,10 +157,9 @@ try {
|
|||
$database->rollback();
|
||||
}
|
||||
_fatal_error($e);
|
||||
}
|
||||
|
||||
$_tracer->end();
|
||||
if (TRACE_FILE) {
|
||||
} finally {
|
||||
$_tracer->end();
|
||||
if (TRACE_FILE) {
|
||||
if (
|
||||
empty($_SERVER["REQUEST_URI"])
|
||||
|| (
|
||||
|
@ -170,4 +169,5 @@ if (TRACE_FILE) {
|
|||
) {
|
||||
$_tracer->flush(TRACE_FILE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue