Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Support slf4j 2.0.6 and logback 1.4.5, #31593 #31825

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

patriknw
Copy link
Member

  • slf4j 2.0 changed the API of getMarker (they say it was internal)
  • we don't want to enforce an update to later slf4j and break downstream projects that still are on slf4j 1.7
  • solution here is to support both by using reflection of the getMarker/getMarkers methods
  • only usage is in StubbedActorContext, i.e. BehaviorTestKit

I have run tests with both versions.

References #31593

* slf4j 2.0 changed the API of getMarker (they say it was internal)
* we don't want to enforce an update to later slf4j and break downstream
  projects that still are on slf4j 1.7
* solution here is to support both by using reflection of the getMarker/getMarkers
  methods
* only usage is in StubbedActorContext, i.e. BehaviorTestKit
Copy link
Member

@johanandren johanandren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@octonato octonato merged commit 45aaa40 into main Jan 26, 2023
@octonato octonato deleted the wip-31593-support-slf4j-2-patriknw branch January 26, 2023 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants