Revisit log4j2 Message.getFormat() deprecation for v9
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start with SentryAppender.captureLog and SentryAppender.createEvent in sentry-log4j2/src/main/java/io/sentry/log4j2/SentryAppender.java, then review the Log4j message interfaces and implementations mentioned in the issue. Determine how to preserve the unformatted template without relying on the deprecated method, and verify both the sentry.message.template attribute and event message behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Log4j 2.24.0 deprecated org.apache.logging.log4j.message.Message.getFormat(), and sentry-log4j2 still calls it to get the unformatted message template. The deprecation warning is suppressed in getsentry/sentry-java#5435 (log4j2 2.20.0 → 2.26.1) to keep the build passing under -Xlint:all -Werror.
- Call sites:
SentryAppender.captureLog(populates thesentry.message.templatelog attribute) andSentryAppender.createEvent(setsMessage.messageon events) insentry-log4j2/src/main/java/io/sentry/log4j2/SentryAppender.java. - The deprecation note points to
MultiformatMessagefor implementing messages. It does not offer a replacement for reading a message's template, andgetFormattedMessage()drops the template. - In 2.26.1 the interface method is a default that returns
null. Concrete classes such asParameterizedMessage,ReusableParameterizedMessage,StringFormattedMessage,MessageFormatMessageandSimpleMessagestill override it without a deprecation. - Log4j 3 has only reached
3.0.0-beta3; no stable 3.0 is listed in the Apache release catalog.
Proposed by Nelson Osacky: suppress the warning now and revisit the call in the next major.
Action taken on behalf of Nelson Osacky.
- Ngôn ngữ chính
- Kotlin
- Star
- 1.4k
- Fork
- 483
- Merge trung bình
- 2 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 202
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/sentry-java
-
Test the `sentry wizard` Android portCó thể đã có người làm @antonis đã nhận 1 ngày trước. Đang mởPlatform: Java
getsentry/sentry-java#6797 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Narrow and clean up Android consumer keep rulesCó thể đã có người làm @runningcode đã nhận 3 ngày trước. Đang mởAndroid Platform: Java
getsentry/sentry-java#6771 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Android Bug Platform: Java Waiting for: Product Owner
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
getsentry/sentry-java#6758 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Android Bug Platform: Java Replays
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
getsentry/sentry-java#6741 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Android Bug Platform: Java Replays
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 50/100
getsentry/sentry-java#6740 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/sentry-java
Issue tương tự
-
device-support good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Legacy Chat backups screen overlaps status and navigation barsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
signalapp/Signal-Android#15150 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 91/100
simplex-chat/simplex-chat#8372 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
android:core
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
championswimmer/TwoFac#178 ·
Maintainer thường phản hồi trong vòng 1 ngày