trace all CLI commands

This commit is contained in:
Shish 2020-02-05 00:16:30 +00:00
parent e971d10d41
commit 188d809ee7

View file

@ -153,8 +153,11 @@ try {
$_tracer->end(); $_tracer->end();
if (TRACE_FILE) { if (TRACE_FILE) {
if ( if (
(microtime(true) - $_shm_load_start) > TRACE_THRESHOLD empty($_SERVER["REQUEST_URI"])
&& ($_SERVER["REQUEST_URI"] ?? "") != "/upload" || (
(microtime(true) - $_shm_load_start) > TRACE_THRESHOLD
&& ($_SERVER["REQUEST_URI"] ?? "") != "/upload"
)
) { ) {
$_tracer->flush(TRACE_FILE); $_tracer->flush(TRACE_FILE);
} }