mirror of https://github.com/apache/kafka.git
Convert class to string before adding to json object.
This commit is contained in:
parent
bc009f218e
commit
475423bb64
|
@ -139,7 +139,7 @@ public class MetadataToStdoutProducer {
|
|||
|
||||
JSONObject obj = new JSONObject();
|
||||
obj.put("producer", "MetadataToStdoutProducer");
|
||||
obj.put("exception", e.getClass());
|
||||
obj.put("exception", e.getClass().toString());
|
||||
obj.put("message", e.getMessage());
|
||||
obj.put("topic", this.topic);
|
||||
obj.put("key", key);
|
||||
|
|
Loading…
Reference in New Issue