From 188d809ee7e5295b46f0be9eee1d8fa810a4b3aa Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 5 Feb 2020 00:16:30 +0000 Subject: [PATCH] trace all CLI commands --- index.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); }