File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -186,8 +186,14 @@ - (BOOL)shouldBeEnabledWithOptions:(SentryOptions *)options
186
186
BOOL performanceDisabled
187
187
= !options.enableAutoPerformanceTracing || !options.isTracingEnabled ;
188
188
BOOL appHangsV2Disabled = options.isAppHangTrackingV2Disabled ;
189
+ # if SDK_V9
190
+ BOOL watchdogDisabled = !options.enableWatchdogTerminationTracking ;
191
+ # else
192
+ // Before V9 this should have no effect so set it to YES
193
+ BOOL watchdogDisabled = YES ;
194
+ # endif // SDK_V9
189
195
190
- if (performanceDisabled && appHangsV2Disabled) {
196
+ if (performanceDisabled && appHangsV2Disabled && watchdogDisabled ) {
191
197
if (appHangsV2Disabled) {
192
198
SENTRY_LOG_DEBUG (@" Not going to enable %@ because enableAppHangTrackingV2 is "
193
199
@" disabled or the appHangTimeoutInterval is 0." ,
@@ -200,6 +206,15 @@ - (BOOL)shouldBeEnabledWithOptions:(SentryOptions *)options
200
206
self.integrationName );
201
207
}
202
208
209
+ # if SDK_V9
210
+ if (watchdogDisabled) {
211
+ SENTRY_LOG_DEBUG (
212
+ @" Not going to enable %@ because enableWatchdogTerminationTracking "
213
+ @" is disabled." ,
214
+ self.integrationName );
215
+ }
216
+ # endif // SKD_V9
217
+
203
218
return NO ;
204
219
}
205
220
#endif // SENTRY_HAS_UIKIT
You can’t perform that action at this time.
0 commit comments