File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ - fix: Respect sentryOption.debug setting instead of #DEBUG build flag for outputting logs #2039
5
6
- fix: Passing correct mutableOptions to iOS SDK (#2037 )
6
7
7
8
## 3.2.14-beta.1
Original file line number Diff line number Diff line change @@ -151,11 +151,11 @@ - (void)setEventEnvironmentTag:(SentryEvent *)event
151
151
if (tempContexts != nil ) {
152
152
[contexts addEntriesFromDictionary: tempContexts];
153
153
}
154
- # if DEBUG
155
- NSData *data = [NSJSONSerialization dataWithJSONObject: contexts options: 0 error: nil ];
156
- NSString *debugContext = [[NSString alloc ] initWithData: data encoding: NSUTF8StringEncoding];
157
- NSLog (@" Contexts: %@ " , debugContext);
158
- # endif
154
+ if (sentryOptions != nil && sentryOptions. debug ) {
155
+ NSData *data = [NSJSONSerialization dataWithJSONObject: contexts options: 0 error: nil ];
156
+ NSString *debugContext = [[NSString alloc ] initWithData: data encoding: NSUTF8StringEncoding];
157
+ NSLog (@" Contexts: %@ " , debugContext);
158
+ }
159
159
}];
160
160
resolve (contexts);
161
161
}
You can’t perform that action at this time.
0 commit comments