fix(client): downgrade slow query diagnostics (#10884)

Report slow client findAll measurements as warnings instead of errors so the browser console reflects that these entries are performance diagnostics, not failed queries.

Preserve the existing threshold, payload, and timing details for performance triage.

Signed-off-by: Ignat Remizov <ignat@ignatremizov.com>
This commit is contained in:
Ignat Remizov
2026-05-26 14:27:45 +07:00
committed by GitHub
parent a61d72374a
commit 2c151ea4fe
@@ -777,7 +777,7 @@ class Connection implements ClientConnection {
params: [_class, query, options],
measure: (time, result, serverTime, queue, toReceive) => {
if (typeof window !== 'undefined' && (time > 1000 || serverTime > 500)) {
console.error(
console.warn(
'measure slow findAll',
time,
serverTime,