Convert class to string before adding to json object.

This commit is contained in:
Geoff Anderson 2015-05-31 21:05:09 -07:00
parent bc009f218e
commit 475423bb64
1 changed files with 1 additions and 1 deletions

View File

@ -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);