[ 
https://issues.apache.org/jira/browse/KAFKA-5481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16055734#comment-16055734
 ] 

Paolo Patierno commented on KAFKA-5481:
---------------------------------------

[~ijuma] I got your point using a log tracing in the following way :

{code}
log.trace("Received ListOffsetResponse {} from broker {}", 
lor.toString(response.requestHeader().apiVersion()), node);
{code}

It seems to me not so natural because most of the times we don't call toString 
explicitly in the code.

> ListOffsetResponse isn't logged in the right way with trace level enabled
> -------------------------------------------------------------------------
>
>                 Key: KAFKA-5481
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5481
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients
>            Reporter: Paolo Patierno
>            Assignee: Paolo Patierno
>
> Hi,
> when trace level is enabled, the ListOffsetResponse isn't logged well but 
> just the class name is showed in the log  :
> {code}
> [2017-06-20 14:18:50,724] TRACE Received ListOffsetResponse 
> org.apache.kafka.common.requests.ListOffsetResponse@7ed5ecd9 from broker 
> new-host:9092 (id: 0 rack: null) 
> (org.apache.kafka.clients.consumer.internals.Fetcher:674)
> {code}
> The class doesn't provide a toString() for such a thing.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to