From 85635896c1664f1e08460c1745f1d950a849ff72 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Thu, 3 Oct 2024 12:02:21 +0300 Subject: [PATCH 1/3] Emits Bridge log only in debug mode --- ios/RNSentry.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ios/RNSentry.mm b/ios/RNSentry.mm index 1ff85705f..d2254aa5c 100644 --- a/ios/RNSentry.mm +++ b/ios/RNSentry.mm @@ -342,7 +342,9 @@ - (NSDictionary*) fetchNativeStackFramesBy: (NSArray*)instructionsAdd RCT_EXPORT_METHOD(fetchNativeDeviceContexts:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { - NSLog(@"Bridge call to: deviceContexts"); + if (PrivateSentrySDKOnly.options.debug) { + NSLog(@"Bridge call to: deviceContexts"); + } __block NSMutableDictionary *serializedScope; // Temp work around until sorted out this API in sentry-cocoa. // TODO: If the callback isnt' executed the promise wouldn't be resolved. From 825801783cff0151983ea6fc05bff3852c837618 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Thu, 3 Oct 2024 12:06:49 +0300 Subject: [PATCH 2/3] Adds changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 190f5d04d..9836e52ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Bump CLI from v2.36.1 to v2.36.6 ([#4116](https://github.com/getsentry/sentry-react-native/pull/4116), [#4131](https://github.com/getsentry/sentry-react-native/pull/4131), [#4137](https://github.com/getsentry/sentry-react-native/pull/4137), [#4144](https://github.com/getsentry/sentry-react-native/pull/4144)) - [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2366) - [diff](https://github.com/getsentry/sentry-cli/compare/2.36.1...2.36.6) +- Emits Bridge log only in debug mode ([#4145](https://github.com/getsentry/sentry-react-native/pull/4145)) ## 5.33.1 From 702b11995655b1fa37532d2681a20f123ed7f112 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Thu, 3 Oct 2024 12:10:26 +0300 Subject: [PATCH 3/3] Updates changelog --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9836e52ca..6d57803c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,15 @@ ## Unreleased +### Fixes + +- Emits Bridge log only in debug mode ([#4145](https://github.com/getsentry/sentry-react-native/pull/4145)) + ### Dependencies - Bump CLI from v2.36.1 to v2.36.6 ([#4116](https://github.com/getsentry/sentry-react-native/pull/4116), [#4131](https://github.com/getsentry/sentry-react-native/pull/4131), [#4137](https://github.com/getsentry/sentry-react-native/pull/4137), [#4144](https://github.com/getsentry/sentry-react-native/pull/4144)) - [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2366) - [diff](https://github.com/getsentry/sentry-cli/compare/2.36.1...2.36.6) -- Emits Bridge log only in debug mode ([#4145](https://github.com/getsentry/sentry-react-native/pull/4145)) ## 5.33.1