You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Manasvi Gupta (JIRA)" <ji...@apache.org> on 2018/04/08 12:00:00 UTC

[jira] [Commented] (KAFKA-5706) log the name of the error instead of the error code in response objects

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

Manasvi Gupta commented on KAFKA-5706:
--------------------------------------

Hi [~junrao],

1) Is there an example of current error message and desired one?

2) While digging through the code, I found enum *Errors.java* which provides message() function that returns error messages. Is this right class for this change?

Thanks
Manasvi

> log the name of the error instead of the error code in response objects
> -----------------------------------------------------------------------
>
>                 Key: KAFKA-5706
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5706
>             Project: Kafka
>          Issue Type: Improvement
>          Components: clients, core
>    Affects Versions: 0.11.0.0
>            Reporter: Jun Rao
>            Assignee: Manasvi Gupta
>            Priority: Major
>              Labels: newbie
>
> Currently, when logging the error code in the response objects, we simply log response.toString(), which contains the error code. It will be useful to log the name of the corresponding exception for the error, which is more meaningful than an error code.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)