Revisit log4j2 Message.getFormat() deprecation for v9
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Kotlin
- Estrellas
- 1.4k
- Forks
- 483
- Merge medio
- 2 d 2 h
- PR fusionados (30 d)
- 202
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getsentry/sentry-java
-
Test the `sentry wizard` Android portPosiblemente ocupada @antonis la tomó hace 1 día. AbiertoPlatform: Java
getsentry/sentry-java#6797 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Narrow and clean up Android consumer keep rulesPosiblemente ocupada @runningcode la tomó hace 3 días. AbiertoAndroid Platform: Java
getsentry/sentry-java#6771 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Android Bug Platform: Java Waiting for: Product Owner
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
getsentry/sentry-java#6758 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Android Bug Platform: Java Replays
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
getsentry/sentry-java#6741 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Android Bug Platform: Java Replays
Dificultad 3/5 1-2 días Aptitud para principiantes 50/100
getsentry/sentry-java#6740 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de getsentry/sentry-java
Issues similares
-
device-support good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Legacy Chat backups screen overlaps status and navigation barsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
signalapp/Signal-Android#15150 ·
Los mantenedores suelen responder en 1 día
-
bug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 91/100
simplex-chat/simplex-chat#8372 ·
Los mantenedores suelen responder en 1 día
-
android:core
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
championswimmer/TwoFac#178 ·
Los mantenedores suelen responder en 1 día