trace all CLI commands
This commit is contained in:
parent
e971d10d41
commit
188d809ee7
1 changed files with 5 additions and 2 deletions
|
@ -153,8 +153,11 @@ try {
|
|||
$_tracer->end();
|
||||
if (TRACE_FILE) {
|
||||
if (
|
||||
empty($_SERVER["REQUEST_URI"])
|
||||
|| (
|
||||
(microtime(true) - $_shm_load_start) > TRACE_THRESHOLD
|
||||
&& ($_SERVER["REQUEST_URI"] ?? "") != "/upload"
|
||||
)
|
||||
) {
|
||||
$_tracer->flush(TRACE_FILE);
|
||||
}
|
||||
|
|
Reference in a new issue