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

Review logging, some code tidy up #1178

Merged
merged 1 commit into from Jul 13, 2023

Conversation

trnguyencflt
Copy link
Member

This is as part of reviewing our logging, I have checked across the repository and confirm that we don't log configuration.

@trnguyencflt trnguyencflt force-pushed the KREST-11025-logging-improvements branch from 2f203ce to cc7e976 Compare July 12, 2023 16:10
@trnguyencflt trnguyencflt marked this pull request as ready for review July 12, 2023 16:10
@trnguyencflt trnguyencflt requested a review from a team as a code owner July 12, 2023 16:10
@@ -47,7 +47,7 @@ public class DefaultKafkaRestContext implements KafkaRestContext {
private SchemaRegistryClient schemaRegistryClient;

public DefaultKafkaRestContext(KafkaRestConfig config) {
log.debug("Creating context with config: {}", config);
Copy link
Member Author

Choose a reason for hiding this comment

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

this doesn't actually log the configuration at the moment due to it use default toString() of Object, but changing this just in case.

@@ -113,7 +113,6 @@ private static RequestLog createRequestLog(
KafkaRestConfig config,
RequestLog.Writer requestLogWriter,
String requestLogFormat,
Logger log,
Copy link
Member Author

Choose a reason for hiding this comment

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

log is a static object, so we don't need to pass to this function

@trnguyencflt trnguyencflt merged commit ca2ea23 into master Jul 13, 2023
3 checks passed
@trnguyencflt trnguyencflt deleted the KREST-11025-logging-improvements branch July 13, 2023 10:49
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.

None yet

2 participants