diff --git a/index.php b/index.php index f0010b7e..86666ee2 100644 --- a/index.php +++ b/index.php @@ -153,8 +153,11 @@ try { $_tracer->end(); if (TRACE_FILE) { if ( - (microtime(true) - $_shm_load_start) > TRACE_THRESHOLD - && ($_SERVER["REQUEST_URI"] ?? "") != "/upload" + empty($_SERVER["REQUEST_URI"]) + || ( + (microtime(true) - $_shm_load_start) > TRACE_THRESHOLD + && ($_SERVER["REQUEST_URI"] ?? "") != "/upload" + ) ) { $_tracer->flush(TRACE_FILE); }