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();
if (TRACE_FILE) {
if (
empty($_SERVER["REQUEST_URI"])
|| (
(microtime(true) - $_shm_load_start) > TRACE_THRESHOLD
&& ($_SERVER["REQUEST_URI"] ?? "") != "/upload"
)
) {
$_tracer->flush(TRACE_FILE);
}