Skip to content

Commit 83cd14a

Browse files
authored
Remove extra log check (#7027)
1 parent 8c1cafc commit 83cd14a

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Sources/Sentry/SentryHub.m

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,8 @@ - (void)captureSession:(nullable SentrySession *)session
208208
}
209209

210210
SentryClientInternal *client = self.client;
211-
if (client.options.diagnosticLevel == kSentryLevelDebug) {
212-
SENTRY_LOG_DEBUG(@"Capturing session with status: %@",
213-
[self createSessionDebugString:SENTRY_UNWRAP_NULLABLE(SentrySession, session)]);
214-
}
211+
SENTRY_LOG_DEBUG(@"Capturing session with status: %@",
212+
[self createSessionDebugString:SENTRY_UNWRAP_NULLABLE(SentrySession, session)]);
215213
[client captureSession:SENTRY_UNWRAP_NULLABLE(SentrySession, session)];
216214
}
217215

@@ -737,10 +735,8 @@ - (SentryEnvelope *)updateSessionState:(SentryEnvelope *)envelope
737735
[currentSession
738736
endSessionCrashedWithTimestamp:[SentryDependencyContainer.sharedInstance
739737
.dateProvider date]];
740-
if (self.client.options.diagnosticLevel == kSentryLevelDebug) {
741-
SENTRY_LOG_DEBUG(@"Ending session with status: %@",
742-
[self createSessionDebugString:currentSession]);
743-
}
738+
SENTRY_LOG_DEBUG(@"Ending session with status: %@",
739+
[self createSessionDebugString:currentSession]);
744740
if (startNewSession) {
745741
// Setting _session to nil so startSession doesn't capture it again
746742
_session = nil;

0 commit comments

Comments
 (0)