Skip to content

Consider making onlyLogRecordMetadata true by default #1659

Closed
@jjathman

Description

@jjathman

Having the default configuration in ConsumerProperties.onlyLogRecordMetadata be true by default. The standard configuration has the potential issue of logging sensitive data and wouldn't be expected by most developers in my opinion. Also, when using Spring Boot modifying this value is not very easy (see spring-projects/spring-boot#24568).

For example, I work in a health care setting and we would often have patient information in Kafka messages. We would not want this information logged in any circumstance. I was a little surprised to see that the SeekToCurrentErrorHandler would end up logging the entire record from the topic.

I think this kind of verbose logging is something that should only be enabled explicitly by users.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions