Skip to content

Commit c474edf

Browse files
authored
fix: Emits Bridge log only in debug mode (#4145)
1 parent 484813b commit c474edf

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Fixes
6+
7+
- Emits Bridge log only in debug mode ([#4145](https://github.com/getsentry/sentry-react-native/pull/4145))
8+
59
### Dependencies
610

711
- 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))

ios/RNSentry.mm

+3-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,9 @@ - (NSDictionary*) fetchNativeStackFramesBy: (NSArray<NSNumber*>*)instructionsAdd
342342
RCT_EXPORT_METHOD(fetchNativeDeviceContexts:(RCTPromiseResolveBlock)resolve
343343
rejecter:(RCTPromiseRejectBlock)reject)
344344
{
345-
NSLog(@"Bridge call to: deviceContexts");
345+
if (PrivateSentrySDKOnly.options.debug) {
346+
NSLog(@"Bridge call to: deviceContexts");
347+
}
346348
__block NSMutableDictionary<NSString *, id> *serializedScope;
347349
// Temp work around until sorted out this API in sentry-cocoa.
348350
// TODO: If the callback isnt' executed the promise wouldn't be resolved.

0 commit comments

Comments
 (0)