44
55# import " SentryHub+Private.h"
66# import " SentryInternalCDefines.h"
7+ # import " SentryLog.h"
78# import " SentryOptions+Private.h"
89# import " SentrySDK+Private.h"
910# import " SentrySessionReplayIntegration+Private.h"
@@ -24,6 +25,7 @@ - (void)unmaskView:(UIView *)view
2425
2526- (void )pause
2627{
28+ SENTRY_LOG_INFO (@" [Session Replay] Pausing session" );
2729 SentrySessionReplayIntegration *replayIntegration
2830 = (SentrySessionReplayIntegration *)[SentrySDK.currentHub
2931 getInstalledIntegration: SentrySessionReplayIntegration.class];
@@ -32,6 +34,7 @@ - (void)pause
3234
3335- (void )resume
3436{
37+ SENTRY_LOG_INFO (@" [Session Replay] Resuming session" );
3538 SentrySessionReplayIntegration *replayIntegration
3639 = (SentrySessionReplayIntegration *)[SentrySDK.currentHub
3740 getInstalledIntegration: SentrySessionReplayIntegration.class];
@@ -40,6 +43,7 @@ - (void)resume
4043
4144- (void )start SENTRY_DISABLE_THREAD_SANITIZER(" double-checked lock produce false alarms" )
4245{
46+ SENTRY_LOG_INFO (@" [Session Replay] Starting session" );
4347 SentrySessionReplayIntegration *replayIntegration
4448 = (SentrySessionReplayIntegration *)[SentrySDK.currentHub
4549 getInstalledIntegration: SentrySessionReplayIntegration.class];
@@ -52,6 +56,7 @@ - (void)start SENTRY_DISABLE_THREAD_SANITIZER("double-checked lock produce false
5256 replayIntegration = (SentrySessionReplayIntegration *)[SentrySDK.currentHub
5357 getInstalledIntegration: SentrySessionReplayIntegration.class];
5458 if (replayIntegration == nil ) {
59+ SENTRY_LOG_DEBUG (@" [Session Replay] Initializing replay integration" );
5560 SentryOptions *currentOptions = SentrySDK.currentHub .client .options ;
5661 replayIntegration =
5762 [[SentrySessionReplayIntegration alloc ] initForManualUse: currentOptions];
@@ -67,6 +72,7 @@ - (void)start SENTRY_DISABLE_THREAD_SANITIZER("double-checked lock produce false
6772
6873- (void )stop
6974{
75+ SENTRY_LOG_INFO (@" [Session Replay] Stopping session" );
7076 SentrySessionReplayIntegration *replayIntegration
7177 = (SentrySessionReplayIntegration *)[SentrySDK.currentHub
7278 getInstalledIntegration: SentrySessionReplayIntegration.class];
@@ -75,11 +81,13 @@ - (void)stop
7581
7682- (void )showMaskPreview
7783{
84+ SENTRY_LOG_DEBUG (@" [Session Replay] Showing mask preview" );
7885 [self showMaskPreview: 1 ];
7986}
8087
8188- (void )showMaskPreview : (CGFloat)opacity
8289{
90+ SENTRY_LOG_DEBUG (@" [Session Replay] Showing mask preview with opacity: %f " , opacity);
8391 SentrySessionReplayIntegration *replayIntegration
8492 = (SentrySessionReplayIntegration *)[SentrySDK.currentHub
8593 getInstalledIntegration: SentrySessionReplayIntegration.class];
@@ -89,6 +97,7 @@ - (void)showMaskPreview:(CGFloat)opacity
8997
9098- (void )hideMaskPreview
9199{
100+ SENTRY_LOG_DEBUG (@" [Session Replay] Hiding mask preview" );
92101 SentrySessionReplayIntegration *replayIntegration
93102 = (SentrySessionReplayIntegration *)[SentrySDK.currentHub
94103 getInstalledIntegration: SentrySessionReplayIntegration.class];
0 commit comments