Skip to content

Commit c15867f

Browse files
authored
Fix print recursion detection (#2624)
1 parent 0d852d0 commit c15867f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Unreleased
44

5+
### Fixes
6+
7+
- Fix print recursion detection ([#2624](https://github.com/getsentry/sentry-dart/pull/2624))
58
### Dependencies
69

710
- Bump Cocoa SDK from v8.44.0-beta.1 to v8.44.0 ([#2649](https://github.com/getsentry/sentry-dart/pull/2649))

dart/lib/src/sentry_run_zoned_guarded.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class SentryRunZonedGuarded {
2929

3030
final sentryZoneSpecification = ZoneSpecification.from(
3131
zoneSpecification ?? ZoneSpecification(),
32-
print: (self, parent, zone, line) async {
32+
print: (self, parent, zone, line) {
3333
final options = hub.options;
3434

3535
if (userPrint != null) {
@@ -61,12 +61,12 @@ class SentryRunZonedGuarded {
6161

6262
try {
6363
_isPrinting = true;
64-
await hub.addBreadcrumb(
64+
unawaited(hub.addBreadcrumb(
6565
Breadcrumb.console(
6666
message: line,
6767
level: SentryLevel.debug,
6868
),
69-
);
69+
));
7070
parent.print(zone, line);
7171
} finally {
7272
_isPrinting = false;

0 commit comments

Comments
 (0)