Skip to content

Commit

Permalink
fix: print to stderr instead of stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
zero734kr committed Oct 23, 2022
1 parent df7cc39 commit 117312a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function configure({ longTaskThreshold = 300 }: DebugOptions = {}): Async
longTaskThreshold[event.resourceType] ?? 300;

if (duration > threshold) {
console.log(`Executing asynchronous task ${asyncId} using ${event.resourceType} took ${duration}ms to complete.`);
console.warn(`Executing asynchronous task ${asyncId} using ${event.resourceType} took ${duration}ms to complete.`);
}
}

Expand Down

0 comments on commit 117312a

Please sign in to comment.