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

[WFCORE-6548] Unify test logging in elytron module #5705

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

OndrejKotek
Copy link
Contributor

@github-actions github-actions bot added the deps-ok Dependencies have been checked, and there are no significant changes label Oct 10, 2023
@@ -7,7 +7,7 @@
loggers=org.wildfly.extension.elytron,org.apache.directory,net.sf.ehcache,org.apache.directory.api.ldap,javax.security.sasl,org.wildfly.security,org.wildfly.security.sasl,org.wildfly.security.xml,org.wildfly.security.tls

# Root logger configuration
logger.level=${test.level:TRACE}
logger.level=INFO
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe the Elytron team is used to using this config -Dtest.level

@OndrejKotek is there any reason for not using logger.level=${test.level:INFO} instead?

Copy link
Contributor Author

@OndrejKotek OndrejKotek Oct 11, 2023

Choose a reason for hiding this comment

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

I have taken other similar logging configurations into account and tried to find the best solution. I think the maximum levels of the most important loggers are set below and the logging level for Elytron tests is handled through handler.CONSOLE.level=${test.level:INFO}.

@fjuma @Skyllarr WDYT please?

Copy link
Contributor

Choose a reason for hiding this comment

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

@OndrejKotek Thanks for the explanation. This seems ok then. @yersan WDYT?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for reviewing @fjuma. I am fine with this too then.

The change here is now only the loggers declared in the loggers configuration will be taken into account by the CONSOLE handler when the level changes to something different than INFO. The root logger will be always INFO. That's more clear handling since it takes into account only the loggers you want for your tests avoiding the root logger.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Threads and installation-manager could use the same approach, that's a different Jira, I will create one

@yersan yersan requested a review from fjuma October 11, 2023 10:42
@yersan yersan added the ready-for-merge This PR is ready to be merged and fulfills all requirements label Oct 12, 2023
@yersan yersan merged commit 0992209 into wildfly:main Oct 12, 2023
1 check passed
@yersan
Copy link
Collaborator

yersan commented Oct 12, 2023

Thanks @fjuma @OndrejKotek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deps-ok Dependencies have been checked, and there are no significant changes ready-for-merge This PR is ready to be merged and fulfills all requirements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants