-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: [P4PU-687] Added feign custom logger #158
Conversation
log(configKey,"[FEIGN_CLIENT_REQUEST] ---> %s %s", request.httpMethod(), request.url()); | ||
log(configKey,"[FEIGN_CLIENT_RESPONSE] <--- Status: %d, response reason: %s, elapsed time (%d ms), response: %s", status, response.reason(), elapsedTime, responseString); | ||
|
||
return response.toBuilder().body(bodyData).build(); |
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.
why don't you just return the input response?
if you don't read the body, the buffer is still available to be read
src/main/resources/application.yml
Outdated
@@ -59,6 +59,7 @@ rest-client: | |||
|
|||
logging: | |||
level: | |||
it.gov.pagopa.arc.connector: DEBUG |
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.
make it configurable throught env var with default value desired
src/main/resources/application.yml
Outdated
@@ -59,6 +59,7 @@ rest-client: | |||
|
|||
logging: | |||
level: | |||
it.gov.pagopa.arc.connector: \${CONNECTOR_LOGGING_LEVEL:DEBUG} |
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.
for logging levels, let's use a common prefix
it.gov.pagopa.arc.connector: \${CONNECTOR_LOGGING_LEVEL:DEBUG} | |
it.gov.pagopa.arc.connector: \${LOGGING_LEVEL_ARC_CONNECTOR:DEBUG} |
Quality Gate passedIssues Measures |
List of Changes
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: