We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 117312a commit da37635Copy full SHA for da37635
src/index.ts
@@ -84,8 +84,8 @@ export function configure({ longTaskThreshold = 300 }: DebugOptions = {}): Async
84
longTaskThreshold :
85
longTaskThreshold[event.resourceType] ?? 300;
86
87
- if (duration > threshold) {
88
- console.warn(`Executing asynchronous task ${asyncId} using ${event.resourceType} took ${duration}ms to complete.`);
+ if (duration >= threshold) {
+ console.warn(`Executing asynchronous task (asyncId: ${asyncId}) using ${event.resourceType} took ${duration}ms to complete.`);
89
}
90
91
0 commit comments