mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-07 18:27:44 +02:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user