Skip to content

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

Merged
rouschr merged 3 commits intodevelopfrom
feature/TEDEFO-3325-improve-and-fix-core-reflection-logs
May 6, 2024
Merged

TEDEFO-3325 added more debug logs which give insight into the package…#35
rouschr merged 3 commits intodevelopfrom
feature/TEDEFO-3325-improve-and-fix-core-reflection-logs

Conversation

@rouschr
Copy link
Copy Markdown
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
Comment thread src/main/java/eu/europa/ted/eforms/sdk/component/SdkComponentFactory.java Outdated
Comment thread src/main/java/eu/europa/ted/eforms/sdk/component/SdkComponentDescriptor.java Outdated
Comment thread src/main/java/eu/europa/ted/eforms/sdk/component/SdkComponentFactory.java Outdated
Optional.ofNullable(componentsMap.get(normalizedVersion))
.orElseGet(Collections::emptyMap);

if (logger.isDebugEnabled()) {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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=[{}]"

Comment thread src/main/java/eu/europa/ted/eforms/sdk/component/SdkComponentFactory.java Outdated
Comment thread src/main/java/eu/europa/ted/eforms/sdk/component/SdkComponentFactory.java Outdated
@rouschr
Copy link
Copy Markdown
Contributor Author

rouschr commented May 2, 2024

Let me know if it is ok now

Copy link
Copy Markdown
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
Copy Markdown
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
@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