don't trigger traces for slow uploads

This commit is contained in:
Shish 2020-02-02 02:09:34 +00:00
parent ebea517c41
commit 81cd320928

View file

@ -152,7 +152,7 @@ try {
$_tracer->end();
if (TRACE_FILE) {
if ((microtime(true) - $_shm_load_start) > TRACE_THRESHOLD) {
if ((microtime(true) - $_shm_load_start) > TRACE_THRESHOLD && $_SERVER["REQUEST_URI"] != "/upload") {
$_tracer->flush(TRACE_FILE);
}
}