4
4
5
5
# import " SentryHub+Private.h"
6
6
# import " SentryInternalCDefines.h"
7
+ # import " SentryLog.h"
7
8
# import " SentryOptions+Private.h"
8
9
# import " SentrySDK+Private.h"
9
10
# import " SentrySessionReplayIntegration+Private.h"
@@ -24,6 +25,7 @@ - (void)unmaskView:(UIView *)view
24
25
25
26
- (void )pause
26
27
{
28
+ SENTRY_LOG_INFO (@" [Session Replay] Pausing session" );
27
29
SentrySessionReplayIntegration *replayIntegration
28
30
= (SentrySessionReplayIntegration *)[SentrySDK.currentHub
29
31
getInstalledIntegration: SentrySessionReplayIntegration.class];
@@ -32,6 +34,7 @@ - (void)pause
32
34
33
35
- (void )resume
34
36
{
37
+ SENTRY_LOG_INFO (@" [Session Replay] Resuming session" );
35
38
SentrySessionReplayIntegration *replayIntegration
36
39
= (SentrySessionReplayIntegration *)[SentrySDK.currentHub
37
40
getInstalledIntegration: SentrySessionReplayIntegration.class];
@@ -40,6 +43,7 @@ - (void)resume
40
43
41
44
- (void )start SENTRY_DISABLE_THREAD_SANITIZER(" double-checked lock produce false alarms" )
42
45
{
46
+ SENTRY_LOG_INFO (@" [Session Replay] Starting session" );
43
47
SentrySessionReplayIntegration *replayIntegration
44
48
= (SentrySessionReplayIntegration *)[SentrySDK.currentHub
45
49
getInstalledIntegration: SentrySessionReplayIntegration.class];
@@ -52,6 +56,7 @@ - (void)start SENTRY_DISABLE_THREAD_SANITIZER("double-checked lock produce false
52
56
replayIntegration = (SentrySessionReplayIntegration *)[SentrySDK.currentHub
53
57
getInstalledIntegration: SentrySessionReplayIntegration.class];
54
58
if (replayIntegration == nil ) {
59
+ SENTRY_LOG_DEBUG (@" [Session Replay] Initializing replay integration" );
55
60
SentryOptions *currentOptions = SentrySDK.currentHub .client .options ;
56
61
replayIntegration =
57
62
[[SentrySessionReplayIntegration alloc ] initForManualUse: currentOptions];
@@ -67,6 +72,7 @@ - (void)start SENTRY_DISABLE_THREAD_SANITIZER("double-checked lock produce false
67
72
68
73
- (void )stop
69
74
{
75
+ SENTRY_LOG_INFO (@" [Session Replay] Stopping session" );
70
76
SentrySessionReplayIntegration *replayIntegration
71
77
= (SentrySessionReplayIntegration *)[SentrySDK.currentHub
72
78
getInstalledIntegration: SentrySessionReplayIntegration.class];
@@ -75,11 +81,13 @@ - (void)stop
75
81
76
82
- (void )showMaskPreview
77
83
{
84
+ SENTRY_LOG_DEBUG (@" [Session Replay] Showing mask preview" );
78
85
[self showMaskPreview: 1 ];
79
86
}
80
87
81
88
- (void )showMaskPreview : (CGFloat )opacity
82
89
{
90
+ SENTRY_LOG_DEBUG (@" [Session Replay] Showing mask preview with opacity: %f " , opacity);
83
91
SentrySessionReplayIntegration *replayIntegration
84
92
= (SentrySessionReplayIntegration *)[SentrySDK.currentHub
85
93
getInstalledIntegration: SentrySessionReplayIntegration.class];
@@ -89,6 +97,7 @@ - (void)showMaskPreview:(CGFloat)opacity
89
97
90
98
- (void )hideMaskPreview
91
99
{
100
+ SENTRY_LOG_DEBUG (@" [Session Replay] Hiding mask preview" );
92
101
SentrySessionReplayIntegration *replayIntegration
93
102
= (SentrySessionReplayIntegration *)[SentrySDK.currentHub
94
103
getInstalledIntegration: SentrySessionReplayIntegration.class];
0 commit comments