Skip to content

Commit fda13c2

Browse files
committed
Call with QOS_CLASS_DEFAULT instead of DISPATCH_QUEUE_PRIORITY_DEFAULT
1 parent 0682b5b commit fda13c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Sentry/SentryClient.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ - (instancetype)initWithOptions:(SentryOptions *)options
117117

118118
// Uses DEFAULT priority (not LOW) because captureLogs() is called synchronously during
119119
// app lifecycle events (willResignActive, willTerminate) and needs to complete quickly.
120-
dispatch_queue_attr_t attributes = dispatch_queue_attr_make_with_qos_class(
121-
DISPATCH_QUEUE_SERIAL, DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
120+
dispatch_queue_attr_t attributes
121+
= dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_DEFAULT, 0);
122122
SentryDispatchQueueWrapper *logBatcherQueue =
123123
[[SentryDispatchQueueWrapper alloc] initWithName:"io.sentry.log-batcher"
124124
attributes:attributes];

0 commit comments

Comments
 (0)