Skip to content

Commit da37635

Browse files
authored
fix: gte and more explicit asyncId number
1 parent 117312a commit da37635

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ export function configure({ longTaskThreshold = 300 }: DebugOptions = {}): Async
8484
longTaskThreshold :
8585
longTaskThreshold[event.resourceType] ?? 300;
8686

87-
if (duration > threshold) {
88-
console.warn(`Executing asynchronous task ${asyncId} using ${event.resourceType} took ${duration}ms to complete.`);
87+
if (duration >= threshold) {
88+
console.warn(`Executing asynchronous task (asyncId: ${asyncId}) using ${event.resourceType} took ${duration}ms to complete.`);
8989
}
9090
}
9191

0 commit comments

Comments
 (0)