-
Notifications
You must be signed in to change notification settings - Fork 1
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
TEDEFO-3325 added more debug logs which give insight into the package… #35
Conversation
… detection and found classes related to the SdkComponent annotation.
src/main/java/eu/europa/ted/eforms/sdk/component/SdkComponentFactory.java
Show resolved
Hide resolved
src/main/java/eu/europa/ted/eforms/sdk/component/SdkComponentFactory.java
Outdated
Show resolved
Hide resolved
src/main/java/eu/europa/ted/eforms/sdk/component/SdkComponentDescriptor.java
Outdated
Show resolved
Hide resolved
src/main/java/eu/europa/ted/eforms/sdk/component/SdkComponentFactory.java
Outdated
Show resolved
Hide resolved
Optional.ofNullable(componentsMap.get(normalizedVersion)) | ||
.orElseGet(Collections::emptyMap); | ||
|
||
if (logger.isDebugEnabled()) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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=[{}]"
src/main/java/eu/europa/ted/eforms/sdk/component/SdkComponentFactory.java
Outdated
Show resolved
Hide resolved
src/main/java/eu/europa/ted/eforms/sdk/component/SdkComponentFactory.java
Outdated
Show resolved
Hide resolved
Let me know if it is ok now |
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK now.
… detection and found classes related to the SdkComponent annotation.