Skip to content

Commit 4349653

Browse files
committed
add sdk debug message
1 parent 5b10643 commit 4349653

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Swift/Integrations/Log/FlushLogsIntegration.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,15 @@ final class FlushLogsIntegration<Dependencies: NotificationCenterProvider>: NSOb
6262

6363
@objc private func willResignActive() {
6464
guard let client = SentrySDKInternal.currentHub().getClient() else {
65+
SentrySDKLog.debug("No need to flush logs on `willResignActive` because there is no client.")
6566
return
6667
}
6768
client.captureLogs()
6869
}
6970

7071
@objc private func willTerminate() {
7172
guard let client = SentrySDKInternal.currentHub().getClient() else {
73+
SentrySDKLog.debug("No need to flush logs on `willTerminate` because there is no client.")
7274
return
7375
}
7476
client.captureLogs()

0 commit comments

Comments
 (0)