don't trigger traces for slow uploads
This commit is contained in:
parent
ebea517c41
commit
81cd320928
@ -152,7 +152,7 @@ try {
|
|||||||
|
|
||||||
$_tracer->end();
|
$_tracer->end();
|
||||||
if (TRACE_FILE) {
|
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);
|
$_tracer->flush(TRACE_FILE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user