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

TEDEFO-3325 added more debug logs which give insight into the package… #35

Merged

Conversation

rouschr
Copy link
Contributor

@rouschr rouschr commented May 2, 2024

… detection and found classes related to the SdkComponent annotation.

… detection and found classes related to the SdkComponent annotation.
@rouschr rouschr requested a review from bertrand-lorentz May 2, 2024 14:44
Optional.ofNullable(componentsMap.get(normalizedVersion))
.orElseGet(Collections::emptyMap);

if (logger.isDebugEnabled()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should rather be done at the "trace" level.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK i will use trace

Copy link
Contributor

Choose a reason for hiding this comment

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

This has not been changed, it is still done at "debug" level".

if (logger.isDebugEnabled()) {
logger.debug("selector componentType={}", selector.componentType);
logger.debug("selector qualifier={}", selector.qualifier);
logger.debug("normalized version={}", normalizedVersion);
Copy link
Contributor

Choose a reason for hiding this comment

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

Those 3 lines should be merged into one, with a clearer text.
And for other logs, those values are in square brackets, so let's be consistent.
So for example:
"Looking for component with version=[{}], componentType=[{}], qualifier=[{}]"

@rouschr
Copy link
Contributor Author

rouschr commented May 2, 2024

Let me know if it is ok now

Copy link
Contributor

@bertrand-lorentz bertrand-lorentz left a comment

Choose a reason for hiding this comment

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

Some changes from debug to trace have not been done.

Copy link
Contributor

@bertrand-lorentz bertrand-lorentz left a comment

Choose a reason for hiding this comment

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

Looks OK now.

@rouschr rouschr merged commit 287e763 into develop May 6, 2024
4 checks passed
@rouschr rouschr deleted the feature/TEDEFO-3325-improve-and-fix-core-reflection-logs branch May 6, 2024 07:47
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.

2 participants