divijvaidya commented on PR #12891: URL: https://github.com/apache/kafka/pull/12891#issuecomment-1325227441
> @divijvaidya , thanks for the PR. Do you think we can add the check in `kafka.utils.Logging#trace`? Hey @showuon That would not prevent serialization of string which is passed as an argument e.g. at > trace(s"Socket server received response to send to $connectionId, registering for write and sending data: $response") the `response` object is serialized to string before passing the parameter to trace(). This is an old problem with loggers and [slf4j have solved it in Java](https://www.slf4j.org/faq.html#logging_performance) world with parameterised logging but I am not sure how to fix it in scala world. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org