Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Update sentry-core/src/main/java/io/sentry/core/SentryClient.java
Co-Authored-By: Bruno Garcia <bruno@brunogarcia.com>
  • Loading branch information
marandaneto and bruno-garcia authored Oct 27, 2019
commit da1ef6a8d10d671820cffe2ada45072cadef7047
1 change: 1 addition & 0 deletions sentry-core/src/main/java/io/sentry/core/SentryClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public SentryId captureEvent(SentryEvent event, @Nullable Scope scope) {
if (event.getExtra() == null) {
event.setExtra(scope.getExtra());
}
// Level from scope exceptionally take precedence over the event
if (scope.getLevel() != null) {
event.setLevel(scope.getLevel());
}
Expand Down