From 650cda31fd265a1798778787a426381c84098b2d Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Tue, 6 Dec 2022 14:10:40 -0800 Subject: [PATCH] Tweak logging --- src/common/TaskQueue.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/TaskQueue.ts b/src/common/TaskQueue.ts index 4674ad5b..30068a5f 100644 --- a/src/common/TaskQueue.ts +++ b/src/common/TaskQueue.ts @@ -79,8 +79,8 @@ abstract class TaskQueue implements ITaskQueue { if (longestTask * 1.5 > deadlineRemaining) { // Warn when the time exceeding the deadline is over 20ms, if this happens in practice the // task should be split into sub-tasks to ensure the UI remains responsive. - if (lastDeadlineRemaining - taskDuration < -5) { - console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(lastDeadlineRemaining - taskDuration))}ms`, { stacktrace: new Error().stack }); + if (lastDeadlineRemaining - taskDuration < -20) { + console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(lastDeadlineRemaining - taskDuration))}ms`); } this._start(); return;