Skip to content

Commit 4244da7

Browse files
committed
fix
1 parent 6a310df commit 4244da7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sentry/src/main/java/io/sentry/util/LoggerPropertiesUtil.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,10 @@ public static void applyPropertiesToEvent(
3030
final @NotNull Map<String, String> properties) {
3131
if (!targetKeys.isEmpty() && !properties.isEmpty()) {
3232
for (final String key : targetKeys) {
33-
@Nullable String value = properties.remove(key)
33+
final @Nullable String value = properties.remove(key);
3434
if (value != null) {
3535
event.setTag(key, value);
3636
}
37-
event.setTag(key, properties.get(key));
38-
properties.remove(key);
39-
}
4037
}
4138
if (!properties.isEmpty()) {
4239
event.getContexts().put("MDC", properties);

0 commit comments

Comments
 (0)