jakub-id commented on issue #3904:
URL:
https://github.com/apache/logging-log4j2/issues/3904#issuecomment-3252787902
@vy Thanks, the original issue has been indeed resolved but we have another
problem now. One of the dependencies (okapi-core) is using a contextual logger
(log4j2 config attached), which on vert.x is not a standard MDC. With beta3
that config fails with:
```
java.lang.IllegalArgumentException
at io.vertx.core.impl.ContextBase.putLocal(ContextBase.java:67)
at io.vertx.core.Context.putLocal(Context.java:289)
at
org.folio.okapi.common.logging.FolioLoggingContext.put(FolioLoggingContext.java:107)
at
org.folio.tlib.RouterCreator.lambda$mountAll$0(RouterCreator.java:44)
```
this is likely related to a change that removed some defensive code from
okapi-core:
https://github.com/folio-org/okapi/commit/f1e17983e8b18f932bba86378ad6af9c636bdf8d
Has anything changed wrt handling context variables in 3.x? I skimmed the
migration guide but didn't register anything. Any pointers would be appreciated
before we get down the rabbit hole again. I'll be happy to create a separate
ticket if that's preferred. Thanks in advance.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]