Skip to content

Conversation

@aarsilv
Copy link
Collaborator

@aarsilv aarsilv commented Oct 24, 2025

Eppo Internal
//: # (Link to the issue or doc corresponding to this chunk of work)
🎟️ Ticket: FFESUPPORT-103 - Java SDK overrides local configuration

Motivation and Context

Logging is currently misconfigured. The artifact cloud.eppo:eppo-server-sdk:5.0.0 is including a logback.xml which got picked up by Logbacks auto-configuration and was overwriting our configuration.

Description

Move the logback xml files to be test resources. Also adjust test logging a bit

How has this been documented?

n/a - bug fix

How has this been tested?

Packaged a jar and made sure the logback xml files were not in the jar

implementation 'org.jetbrains:annotations:26.0.2'

// Logback classic 1.3.x is compatible with java 8 - only needed for tests
testImplementation 'ch.qos.logback:logback-classic:1.3.15'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

🔧 core part of the fix: moving this to test implementation only

</appender>

<root level="INFO">
<root level="DEBUG">
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

While in this moved file, changed lowest log level to debug as that is handy with unit tests.

👇 Note other xml file also moved to src/test as well.

Copy link
Collaborator

@typotter typotter left a comment

Choose a reason for hiding this comment

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

looks good. version # just needs a bump since we already cut v3.5.1

@typotter typotter enabled auto-merge (squash) October 24, 2025 16:49
@typotter typotter merged commit 46266cd into main Oct 24, 2025
4 checks passed
@typotter typotter deleted the aarsilv/ffesupport-103/fix-log-config branch October 24, 2025 16:51
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.

3 participants