Skip to content

Commit f84d3b9

Browse files
authored
feat(integrations): Capture error arguments as exception regardless of level in captureConsoleIntegration (#10744)
1 parent b0752b5 commit f84d3b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/integrations/src/captureconsole.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function consoleHandler(args: unknown[], level: string): void {
6969
}
7070

7171
const error = args.find(arg => arg instanceof Error);
72-
if (level === 'error' && error) {
72+
if (error) {
7373
captureException(error, captureContext);
7474
return;
7575
}

0 commit comments

Comments
 (0)